diff options
| author | Jeff Carr <[email protected]> | 2024-12-13 18:59:40 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-13 18:59:40 -0600 |
| commit | 22c29b3625f4fac9a345cc3734625f71cc90244e (patch) | |
| tree | 4bd394903a30e917658fb2b9b80ea91115af663b /isTracked.go | |
| parent | 3a83cf030d6037790f1a57bb224f6bf55054a120 (diff) | |
better logic for valid go.mod filesv0.0.1
Diffstat (limited to 'isTracked.go')
| -rw-r--r-- | isTracked.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/isTracked.go b/isTracked.go index 391ecd5..414414b 100644 --- a/isTracked.go +++ b/isTracked.go @@ -32,7 +32,7 @@ func isIgnored(file string) (bool, error) { return false, fmt.Errorf("error checking ignored status: %v", err) } -func repoOwnsGoMod(repo *gitpb.Repo) (bool, error) { +func repoIgnoresGoMod(repo *gitpb.Repo) (bool, error) { os.Chdir(repo.FullPath) file := "go.mod" @@ -44,7 +44,7 @@ func repoOwnsGoMod(repo *gitpb.Repo) (bool, error) { if tracked { fmt.Printf("%s %s is tracked by Git.\n", repo.GoPath, file) - return true, nil + return false, nil } ignored, err := isIgnored(file) |
