Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin golang.org/x/sys to fix windows compilation #170

Merged
merged 1 commit into from
Jan 7, 2020

Conversation

carolynvs
Copy link
Contributor

Upstream golang.org/x/sys introduced a breaking change within a major version again, see golang/go#34610. The workaround is to pin it to the last revision that is compatible with moby/moby.

I've added builds for mac and windows to the CI run to verify the fix and catch problems more quickly in the future.

@carolynvs carolynvs force-pushed the pin-sys branch 4 times, most recently from 399a681 to 10c73ab Compare January 6, 2020 19:10
Upstream golang.org/x/sys introduced a breaking change within a major
version, see golang/go#34610. The
workaround is to pin it to the last revesion that is compatible with
the version of moby/moby that we are using.

Verify that the code compiles on windows, macos and linux during our CI
run to catch problems like this one (a regression in golang.org/x/sys)
in the future as soon as it happens.

Also do a reset of our go dependencies after bootstrap. When we use go
get to install global dependencies, it modifies our go.* files changing
the versions of the dependencies that we required, making the build
break, because kind requires different versions than docker. This resets
it back to what we need before we compile.

Signed-off-by: Carolyn Van Slyck <[email protected]>
Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@silvin-lubecki silvin-lubecki merged commit 820f45b into cnabio:master Jan 7, 2020
@carolynvs carolynvs deleted the pin-sys branch February 6, 2020 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants