Skip to content

Commit

Permalink
ci: lint shell didn't reject imperfect script (#638)
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <[email protected]>
  • Loading branch information
spacewander authored Jul 11, 2024
1 parent e27e2f7 commit 4ca3fc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ jobs:
reporter: github-pr-review
path: "."
pattern: "*.sh"
fail_on_error: true

- name: lint remain
run: |
Expand Down
6 changes: 4 additions & 2 deletions tools/gen-crd-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ readonly OUTPUT_PKG=${REPO}/types/pkg/client
readonly APIS_PKG=${REPO}/types
readonly CLIENTSET_NAME=versioned
readonly CLIENTSET_PKG_NAME=clientset
readonly GOPATH="$(mktemp -d)"
readonly SCRIPT_ROOT="$(pwd)/types"
GOPATH="$(mktemp -d)"
SCRIPT_ROOT="$(pwd)/types"

export GOPATH
mkdir -p "$GOPATH/src/$REPO"
Expand All @@ -36,9 +36,11 @@ fi
readonly COMMON_FLAGS="${VERIFY_FLAG:-} --go-header-file ${SCRIPT_ROOT}/hack/boilerplate.go.txt"

echo "Generating clientset at ${OUTPUT_PKG}/${CLIENTSET_PKG_NAME}"
# shellcheck disable=SC2086
"${LOCALBIN}"/client-gen \
--clientset-name "${CLIENTSET_NAME}" \
--input-base "" \
--input "${APIS_PKG}/apis/v1" \
--output-package "${OUTPUT_PKG}/${CLIENTSET_PKG_NAME}" \
-v 3 \
${COMMON_FLAGS}

0 comments on commit 4ca3fc5

Please sign in to comment.