Skip to content

Commit

Permalink
gop.Config: UpdateGoMod => DontUpdateGoMod
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed May 22, 2022
1 parent a5be974 commit 8c064d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions load.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ type Config struct {
Filter func(fs.FileInfo) bool
Importer types.Importer

UpdateGoMod bool
CheckModChanged bool
DontUpdateGoMod bool
DontCheckModChanged bool
}

// -----------------------------------------------------------------------------
Expand All @@ -56,8 +56,8 @@ func loadMod(dir string, gop *env.Gop, conf *Config) (mod *gopmod.Module, err er
if err != nil {
return
}
if conf.UpdateGoMod {
err = mod.UpdateGoMod(gop, conf.CheckModChanged)
if !conf.DontUpdateGoMod {
err = mod.UpdateGoMod(gop, !conf.DontCheckModChanged)
}
return
}
Expand Down

0 comments on commit 8c064d9

Please sign in to comment.