File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ func (m ModMode) argsForGoVersion(version string) []string {
203
203
}
204
204
205
205
// 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 {
207
207
cmd := exec .Command ("go" , "mod" , "edit" , "-go=" + version )
208
208
return util .RunCmd (cmd )
209
209
}
@@ -294,7 +294,7 @@ func main() {
294
294
} else if explicitRe := regexp .MustCompile ("(?m)^## explicit$" ); ! explicitRe .Match (modulesTxt ) {
295
295
// and the modules.txt does not contain an explicit annotation
296
296
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" ) {
298
298
log .Println ("Failed to add a version to the go.mod file to fix explicitly required package bug; not using vendored dependencies" )
299
299
modMode = ModMod
300
300
}
You can’t perform that action at this time.
0 commit comments