Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions roles/operator_build/tasks/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

- name: "{{ operator.name }} - Update the go.mod file in meta operator for provided PR_SHA" # noqa: name[template]
ansible.builtin.shell: |
set -e
go mod edit -replace {{ operator_api_path }}=github.com/{{ operator.pr_owner }}/{{ operator_base_module_name }}@{{ operator.pr_sha }}
go mod tidy
if [ -d ./apis ]; then
Expand Down Expand Up @@ -69,6 +70,7 @@

- name: "{{ operator.name }} - Update the go.mod file using latest commit if no PR is provided" # noqa: name[template]
ansible.builtin.shell: |
set -e
go mod edit -replace {{ operator_api_path }}={{ operator_api_path }}@{{ pr_sha }}
go mod tidy
if [ -d ./apis ]; then
Expand Down
Loading