-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
build: try creating the go bin directory #19862
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious if this stemmed from an open issue.
@raymonstah Not that I've seen, no. I encountered this myself when setting up a fresh EC2 instance to build and run Vault, and thought it'd be a good idea. However I came across this old issue: #7170 It kinda makes sense to me that some users with GOBIN set may want it in that location. Though I think this location is usually meant for Go packages when using
Curious what others would think of something like this for line 53: This sets BIN_PATH to the values in this order:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might warrant a changelog entry, not so much for vault users as for vault packagers; conceivably this might break someone's build script.
Currently if the $GOPATH/bin directory does not exist, the binary will fail to be copied to the location.
I don't believe an if statement is needed to check for directory existence before the mkdir command, it simply does nothing when the directory already exists.
Closes #7170