Skip to content

Commit

Permalink
Merge pull request fluxcd#1071 from longkai/fix-code-gen
Browse files Browse the repository at this point in the history
fix: code gen sometimes fail issue
  • Loading branch information
stefanprodan authored Dec 14, 2021
2 parents f0d2e60 + a14013f commit 7f0f97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -o pipefail
SCRIPT_ROOT=$(git rev-parse --show-toplevel)

# Grab code-generator version from go.sum.
CODEGEN_VERSION=$(grep 'k8s.io/code-generator' go.sum | awk '{print $2}' | head -1)
CODEGEN_VERSION=$(grep 'k8s.io/code-generator' go.sum | awk '{print $2}' | tail -1 | awk -F '/' '{print $1}')
CODEGEN_PKG=$(echo `go env GOPATH`"/pkg/mod/k8s.io/code-generator@${CODEGEN_VERSION}")

echo ">> Using ${CODEGEN_PKG}"
Expand Down

0 comments on commit 7f0f97d

Please sign in to comment.