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

switch os/user with luser #5065

Merged
merged 1 commit into from
Jul 28, 2020
Merged

switch os/user with luser #5065

merged 1 commit into from
Jul 28, 2020

Conversation

jaxxstorm
Copy link
Contributor

We make several calls to os/user, which uses CGO and means
cross-compilation is not possible. This replaces os/user with the
luser package, which is a drop-in replacement which does not use CGO

@jaxxstorm jaxxstorm force-pushed the jaxxstorm/luser branch 3 times, most recently from ef76a5b to 80acac0 Compare July 27, 2020 20:02
Copy link
Contributor

@EvanBoyle EvanBoyle left a comment

Choose a reason for hiding this comment

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

LGTM assuming tests pass.

Just curious, why do we want to cross-compile? Don't we still need to maintain the platform-specific VM builds for tests and such?

We make several calls to `os/user`, which uses CGO and means
cross-compilation is not possible. This replaces `os/user` with the
`luser` package, which is a drop-in replacement which does not use `CGO`
@jaxxstorm
Copy link
Contributor Author

Don't we still need to maintain the platform-specific VM builds for tests and such?

Yeah we do, but the intent is to encapsulate the build process into a single build step with goreleaser to remove a bunch of the manual/custom shell scripts, which needs cross-compilation to be enabled.

@jaxxstorm jaxxstorm merged commit b1ee3a3 into master Jul 28, 2020
@pulumi-bot pulumi-bot deleted the jaxxstorm/luser branch July 28, 2020 18:05
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

2 participants