diff options
| author | Jeff Carr <[email protected]> | 2025-01-19 04:31:49 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-19 04:31:49 -0600 |
| commit | 66dc174bbac6df66e2bf90d48007089db0428702 (patch) | |
| tree | edd314d883adcc22a6f223be7abfaaba34752d61 /doStrict.go | |
| parent | 3adf184a4ad6f9012c8055b1af453394844898cd (diff) | |
this needs reworkv0.0.33
Diffstat (limited to 'doStrict.go')
| -rw-r--r-- | doStrict.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doStrict.go b/doStrict.go index aeea171..2255582 100644 --- a/doStrict.go +++ b/doStrict.go @@ -19,6 +19,11 @@ func doStrict(repo *gitpb.Repo) error { repo.Run([]string{"git", "notes", "remove"}) + if err := repo.RepoIgnoresGoMod(); err != nil { + log.Info(repo.GetGoPath(), "git repo does not ignore go.mod. do nothing here", err) + return nil + } + // erase the go.mod and go.sum files eraseGoMod(repo) |
