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 Go env vars to setup guide #10496

Merged
merged 2 commits into from
Apr 19, 2024
Merged

Add Go env vars to setup guide #10496

merged 2 commits into from
Apr 19, 2024

Conversation

rileykarson
Copy link
Member

https://go.dev/doc/install never actually has you set a GOPATH env var, although we rely on it in our clone and generate commands. Using $GOPATH is technically an override for the default GOPATH accessible through go env GOPATH, but we can just explicitly set the default value here. The defaults ~/go for the most part, and anyone who did something different should be able to figure out where to deviate.

Additionally, we expect go install of goimports to work, but it doesn't by default. Users will eventually end up on a blog that instructs them to add GOPATH/bin to their PATH. Again, not covered by the default install commands.

Release Note Template for Downstream PRs (will be copied)

@rileykarson rileykarson requested a review from melinath April 19, 2024 18:29
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@rileykarson rileykarson merged commit 70b00c2 into main Apr 19, 2024
12 checks passed
@rileykarson rileykarson deleted the rileykarson-patch-1 branch April 19, 2024 19:02
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request May 2, 2024
balanaguharsha pushed a commit to balanaguharsha/magic-modules that referenced this pull request May 2, 2024
BBBmau pushed a commit to BBBmau/magic-modules that referenced this pull request May 8, 2024
pawelJas pushed a commit to pawelJas/magic-modules that referenced this pull request May 16, 2024
pengq-google pushed a commit to pengq-google/magic-modules that referenced this pull request May 21, 2024
Cheriit pushed a commit to Cheriit/magic-modules that referenced this pull request Jun 4, 2024
pcostell pushed a commit to pcostell/magic-modules that referenced this pull request Jul 16, 2024
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.

3 participants