Skip to content
Merged
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
3 changes: 2 additions & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ declare -a GOMODS=(
)
echo "Setting permissions for files of relevant go modules to 644"
for MOD in "${GOMODS[@]}"; do
find "$(go list -json -m -u "${MOD}" | jq -r '.Dir')" -type f -exec chmod 644 {} +
# Use 'go list' directly to avoid an external 'jq' dependency.
find "$(go list -m -f '{{.Dir}}' "${MOD}")" -type f -exec chmod 644 {} +
done

echo "Generating ${blue}openapi${normal}"
Expand Down