-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
cmd/operator-sdk/build: expand env in go build #1535
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal/util/projutil: always append os.Environ() to go cmds
openshift-ci-robot
added
the
size/XS
Denotes a PR that changes 0-9 lines, ignoring generated files.
label
Jun 7, 2019
joelanford
approved these changes
Jun 7, 2019
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.
LGTM. We should add a line in the CHANGELOG since this fixes a bug.
hasbro17
reviewed
Jun 7, 2019
Co-Authored-By: Haseeb Tariq <hasbro17@gmail.com>
hasbro17
approved these changes
Jun 7, 2019
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.
LGTM
AlexNPavel
approved these changes
Jun 7, 2019
estroz
pushed a commit
to estroz/operator-sdk
that referenced
this pull request
Jul 19, 2019
* cmd/operator-sdk/build: expand env in go build * internal/util/projutil: always append os.Environ() to go cmds * CHANGELOG.md: add bug fix for env expansion in operator-sdk build Co-Authored-By: Haseeb Tariq <hasbro17@gmail.com>
estroz
pushed a commit
that referenced
this pull request
Jul 19, 2019
* cmd/operator-sdk/build: expand env in go build * internal/util/projutil: always append os.Environ() to go cmds * CHANGELOG.md: add bug fix for env expansion in operator-sdk build Co-Authored-By: Haseeb Tariq <hasbro17@gmail.com>
joel-bluedata
added a commit
to joel-bluedata/kubedirector
that referenced
this pull request
Feb 11, 2020
This removes $GOPATH from the beginning of the filepaths built into the object, and e.g. shown in stacktraces. The operator-sdk build is supposed to do this as well, although with our version of the operator SDK you need to backport this fix to your own local copy before building/installing it: operator-framework/operator-sdk#1535
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the change: expand environment variables in
operator-sdk build
'sgo build
process, and always append os.Environ() togo
commands.Motivation for the change:
exec.Cmd
's are not run in a shell, so env variables are not expanded.Closes #1530