-
Notifications
You must be signed in to change notification settings - Fork 7
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
Target build asset for the Buildpack when using the environment variable #6
Conversation
We have a Buildpacke e2e test in the https://github.com/shipwright-io/build repo that sets the BP_GO_TARGETS environment variable.
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
/approve
/assign@adambkaplan @adambkaplan the approve (and maybe automatic merge) still does not work here. |
/assign adambkaplan |
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.
Sry, just noticed your directory structure. I think this needs to change. Imo building with contextDir=source-build without BP_GO_TARGETS
will work because there is a main.go inside source-build. But we want a build config that fails if the env var is no set. So, imo you need to move it to a new directory, like /source-build-with-package/main-package
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
/approve
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.
/approve
Green button merging - looks like this was not fully integrated with OpenShift's CI system (which provides all of the prow commands and tide integration). |
We have a Buildpacke e2e test in the shipwright-io/build repo that sets the
BP_GO_TARGETS
environment variable.Note: See here the test case that uses the introduced changes.