File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ func (m ModMode) argsForGoVersion(version string) []string {
203203}
204204
205205// addVersionToMod add a go version directive, e.g. `go 1.14` to a `go.mod` file.
206- func addVersionToMod (goMod [] byte , version string ) bool {
206+ func addVersionToMod (version string ) bool {
207207 cmd := exec .Command ("go" , "mod" , "edit" , "-go=" + version )
208208 return util .RunCmd (cmd )
209209}
@@ -294,7 +294,7 @@ func main() {
294294 } else if explicitRe := regexp .MustCompile ("(?m)^## explicit$" ); ! explicitRe .Match (modulesTxt ) {
295295 // and the modules.txt does not contain an explicit annotation
296296 log .Println ("Adding a version directive to the go.mod file as the modules.txt does not have explicit annotations" )
297- if ! addVersionToMod (goMod , "1.13" ) {
297+ if ! addVersionToMod ("1.13" ) {
298298 log .Println ("Failed to add a version to the go.mod file to fix explicitly required package bug; not using vendored dependencies" )
299299 modMode = ModMod
300300 }
You can’t perform that action at this time.
0 commit comments