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

Add cgo build tag for crosscompiles #20

Merged
merged 1 commit into from
Oct 12, 2018

Conversation

eldondev
Copy link
Contributor

@eldondev eldondev commented Apr 5, 2018

go-keychain is all cgo as of right now, so attempting to cross-compile a darwin executable of aws-vault on linux results in errors about undefined functions. If the cgo build tag is added here, linux cross-compiles of darwin complete successfully (albeit without keychain functionality). I am interested in this because I want transparent access across a host macbook and multiple vagrant machines running on it with the .aws-vault directory mapped into them, which seemed to work after I compiled binaries including this change.

go-keychain is all cgo as of right now, so attempting to cross-compile a darwin executable of aws-vault on linux results in errors about undefined functions. If the cgo build tag is added here, linux cross-compiles of darwin complete successfully (albeit without keychain functionality). I am interested in this because I want transparent access across a host macbook and multiple vagrant machines running on it with the .aws-vault directory mapped into them, which seemed to work after I compiled binaries including this change.
@eldondevat
Copy link

@lox what do you think here?

@lox
Copy link
Collaborator

lox commented May 23, 2018

Sorry for the slow response. I'll need to look into it some more, I'm not sure I quite understand the usecase for darwin builds without keychain support, I wonder if there is a better way to accomplish that.

@eldondevat
Copy link

Is there a reason explicitly not to support it? Current running GOOS=darwin go build on linux just fails. With this it succeeds, that's the only real difference.

@lox
Copy link
Collaborator

lox commented Jun 6, 2018

Would this change how we compile and build normally on darwin? If not, I'm happy to merge.

@mtibben
Copy link
Member

mtibben commented Oct 12, 2018

Fixes #23

@mtibben mtibben merged commit ff690ae into 99designs:master Oct 12, 2018
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.

None yet

5 participants