Update goimports script for go 1.14

Without this change, go 1.14 reports this error:

```
cannot find module providing package golang.org/x/tools/cmd/goimports: working directory is not part of a module
```

Ideally this wouldn't rely on kops being in the GOPATH but that may require updating goimports. This can happen in a followup PR
This commit is contained in:
Peter Rifel 2020-07-14 15:53:27 -05:00
parent 7540a3d7a9
commit 6cefa29adf
No known key found for this signature in database
GPG Key ID: 30DB43602027D941
1 changed files with 1 additions and 4 deletions

View File

@ -36,7 +36,4 @@ for package in packages:
print("packages %s" % paths)
env = os.environ
env["GO111MODULE"] = "on"
subprocess.call(['go', 'run', 'golang.org/x/tools/cmd/goimports', '-w'] + paths, cwd=path.join(gopath, 'src'), env=env)
subprocess.call(['go', 'run', 'golang.org/x/tools/cmd/goimports', '-w'] + paths, cwd=path.join(gopath, 'src'))