-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove client-go lines from go.sum before build
When you build using the build script ./bin/build, the go.sum in the Docker image is using Linux dependencies. For some reason there is currently an issue with k8s.io/client-go where the checksum is different depending on your OS, so building on Linux results in a different checksum than building on Darwin. This can mean: If you run ./bin/build to get an updated go.sum, and then run the keychain provider test locally on your mac, go.sum will be updated with the Darwin checksum. The next time you run ./bin/build, the build will fail due to checksum mismatch. The solution puts back into place something we removed here (730dcf7#diff-f949e2d81c8076ebbf8af38fcbb72c1f) to ensure the Docker image always has the correct Linux checksum, and locally we can have whatever we like. Ideally this dependency can be removed at some point so that the in-repo go.sum will have more meaning, though they recently closed the related github issue (golang/go#27925) so I'm not sure what progress is being made on this. In any case, this should prevent manual futzing with go.sum as you switch between Linux/Docker-based development and local Mac-based development.
- Loading branch information
Geri Jennings
committed
Dec 4, 2018
1 parent
637b48d
commit 3d44aaa
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters