Skip to content

Fix "gvm cross" for Go 1.4#116

Merged
gregorygtseng merged 2 commits intomoovweb:masterfrom
tianon:go1.4-cross
Feb 4, 2015
Merged

Fix "gvm cross" for Go 1.4#116
gregorygtseng merged 2 commits intomoovweb:masterfrom
tianon:go1.4-cross

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).

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