Skip to content

Commit 3c0eba8

Browse files
Merge pull request #1803 from stuggi/fix_pin_script
Fix pin-bundle-images.sh to filter openstack-operator before replace
2 parents 15fdbf6 + 36f59a9 commit 3c0eba8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hack/pin-bundle-images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if [ -n "$DOCKERFILE" ]; then
1717
fi
1818

1919
#loop over each openstack-k8s-operators go.mod entry
20-
MOD_PATHS=$(go list -mod=readonly -m -json all | jq -r '. | select(.Path | contains("openstack")) | .Replace // . |.Path' | grep -v openstack-operator | grep -v lib-common)
20+
MOD_PATHS=$(go list -mod=readonly -m -json all | jq -r '. | select(.Path | contains("openstack")) | select(.Path | contains("openstack-operator") | not) | select(.Path | contains("lib-common") | not) | .Replace // . |.Path')
2121
for MOD_PATH in ${MOD_PATHS}; do
2222
if [[ "$MOD_PATH" == "./apis" ]]; then
2323
continue

0 commit comments

Comments
 (0)