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

Fix "gvm cross" for Go 1.4 #116

Merged
merged 2 commits into from
Feb 4, 2015
Merged

Conversation

tianon
Copy link
Contributor

@tianon tianon commented Dec 24, 2014

go tool dist: opendir /home/user/.gvm/gos/go1.4/src/pkg/runtime: No such file or directory
ERROR: Couldn't compile runtime library for darwin amd64

I also took the liberty of including a second commit which fixes some whitespace inconsistencies in the same file (but I'm happy to remove/separate that commit if preferred).

@@ -44,11 +44,17 @@ export GOARCH=$1
if [ ! -d "$GOROOT/pkg/${GOOS}_${GOARCH}" ]; then
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't help but think that it might be more accurate here to look for "$GOROOT/pkg/${GOOS}_${GOARCH}/runtime.a" or similar, but I haven't done the necessary testing to verify that this would work across a reasonable number of Go versions (but it would catch attempted installs better, and make them easier to repeat).

It'd obviously need to come with the same logic above in display_list, so that's a project for a separate PR, IMO. :)

@tianon
Copy link
Contributor Author

tianon commented Dec 30, 2014

This is affecting multiple Docker projects now (and I'd really rather avoid using language: bash in my .travis.yml files and duplicating the necessary bits of gvm in every file). 😦

@gregorygtseng
Copy link
Contributor

hi @tianon sorry for the delay. could you rebase this on master?

> go tool dist: opendir /home/user/.gvm/gos/go1.4/src/pkg/runtime: No such file or directory
> ERROR: Couldn't compile runtime library for darwin amd64
@tianon
Copy link
Contributor Author

tianon commented Feb 4, 2015

Sure thing; rebased.

@gregorygtseng
Copy link
Contributor

thanks!

gregorygtseng added a commit that referenced this pull request Feb 4, 2015
@gregorygtseng gregorygtseng merged commit 670008e into moovweb:master Feb 4, 2015
@tianon tianon deleted the go1.4-cross branch February 4, 2015 05:12
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