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

[tasks] Make GOPATH optional #3827

Merged
merged 2 commits into from
Jul 10, 2019
Merged

Conversation

olivielpeau
Copy link
Member

What does this PR do?

Make GOPATH optional in our invoke tasks.

Motivation

Fixes #3617. Golang does not require the GOPATH env var to be set anymore (defaults to $HOME/go).

Additional Notes

This PR mostly fixes the logic in bootstrap.process_deps, and extracts
out the logic into a function that should be called instead of querying
GOPATH from the env directly.

Mostly by fixing the logic in `bootstrap.process_deps`, and extracting
out the logic into a function that should be called instead of querying
GOPATH from the env directly.
@olivielpeau olivielpeau added dev/tooling [deprecated] team/agent-core Deprecated. Use metrics-logs / shared-components labels instead.. changelog/no-changelog labels Jul 8, 2019
@olivielpeau olivielpeau added this to the 6.13.0 milestone Jul 8, 2019
Copy link
Collaborator

@KSerrania KSerrania left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link
Member

@arbll arbll left a comment

Choose a reason for hiding this comment

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

Very nice!

@olivielpeau olivielpeau merged commit c2e2cc4 into master Jul 10, 2019
@olivielpeau olivielpeau deleted the olivielpeau/optional-gopath branch July 10, 2019 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog [deprecated] team/agent-core Deprecated. Use metrics-logs / shared-components labels instead.. dev/tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

invoke deps fails without GOPATH
3 participants