-
Notifications
You must be signed in to change notification settings - Fork 207
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
[ART-7273] add modifications to support go wrapper #3309
[ART-7273] add modifications to support go wrapper #3309
Conversation
images/openshift-golang-builder.yml
Outdated
modifications: | ||
- action: replace | ||
match: "# FOD wrapper modification" | ||
replacement: "COPY go_wrapper.sh /tmp/go_wrapper.sh |
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.
I think I'd rather see this script in Dockerfile directly, than the comment to be used as a replacement placeholder.
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.
ok, seem directly hack in dockerfile is straightforward
match: "# FOD wrapper modification" | ||
replacement: "COPY go_wrapper.sh /tmp/go_wrapper.sh | ||
RUN /bin/bash -c 'GO_BIN_PATH=`which go`; mv $GO_BIN_PATH $GO_BIN_PATH.real; mv /tmp/go_wrapper.sh $GO_BIN_PATH; chmod +x $GO_BIN_PATH'" | ||
- action: add |
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.
doozer
is running the rebase code, so would have access to the shell file of the current commit. Think it'd be nicer to not add a network call to master
, but to load the file while rebasing.
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.
the way to use modification method is trying to not add extra logic in images:rebase. I tried to no using URL but that seems the only pattern that ADD modification support. Unless we try to add relative path for add modification function in doozer, I added openshift-eng/doozer@253992d
9dc217a
to
f7f6fce
Compare
/lgtm |
bug in ci ? |
oh, there are no owners file in this branch https://github.com/openshift-eng/ocp-build-data/blob/rhel-9-golang-1.20/OWNERS |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: joepvd The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
add go wrapper during golang build process, the wrapper script will get from doozer repo