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

CI: workaround for incompatible compiler release binary #222

Merged
merged 7 commits into from
Apr 11, 2019

Conversation

bzz
Copy link
Contributor

@bzz bzz commented Apr 11, 2019

Instead of full distro update to get newer compiler #221 - fix last known good go release versions on CI.

This will un-block the next, before-modules release.

.x go version will be restored as soon as both new 1.11 and 1.12 are released #221 (comment)

@bzz bzz self-assigned this Apr 11, 2019
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
bzz added 4 commits April 11, 2019 15:09
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
With go1.11 `go test` in GOPATH mode somehow
seems to depend on GCC. See golang/go#28065

This change only enables cgo for CI profiles that
need it. Those are the ones that seem to fail
on TravisCI now, presumably due to some compiler
version missmatch.

That is a workaround and does not happen in GO11MODULE mode.

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
@bzz bzz requested a review from creachadair April 11, 2019 13:33
This was referenced Apr 11, 2019
.travis.yml Show resolved Hide resolved
internal/code-generator/generator/heuristics.go Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
bzz added 2 commits April 11, 2019 21:35
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
@bzz
Copy link
Contributor Author

bzz commented Apr 11, 2019

@creachadair all feedback addressed, ready for another round!

Copy link
Contributor

@creachadair creachadair left a comment

Choose a reason for hiding this comment

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

I suppose there might have been an earlier export of that variable in the same dynamic extent. Once it's exported, it stays that way even if reassigned. But I think it's good documentation to be explicit, and protects us from non-strict dependency breakages. Thanks!

@bzz bzz merged commit 8c5e0ce into src-d:master Apr 11, 2019
@bzz bzz deleted the ci-workaround branch April 11, 2019 21:02
@bzz bzz added this to the v1.7.3 milestone Apr 11, 2019
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.

2 participants