Skip to content

Commit

Permalink
ci: adjust lint
Browse files Browse the repository at this point in the history
Signed-off-by: thxCode <thxcode0824@gmail.com>
  • Loading branch information
thxCode committed Jan 16, 2024
1 parent cbaed8c commit b677efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ function lint() {

seal::format::run "${path}" "${path_ignored}"
if [[ ${#build_tags[@]} -gt 0 ]]; then
GOLANGCI_LINT_CACHE="$(go env GOCACHE)" seal::lint::run --build-tags="\"${build_tags[*]}\"" "${path}/..."
GOLANGCI_LINT_CACHE="$(go env GOCACHE)/golangci-lint" seal::lint::run --build-tags="\"${build_tags[*]}\"" "${path}/..."
else
GOLANGCI_LINT_CACHE="$(go env GOCACHE)" seal::lint::run "${path}/..."
GOLANGCI_LINT_CACHE="$(go env GOCACHE)/golangci-lint" seal::lint::run "${path}/..."
fi

[[ "${path}" == "${ROOT_DIR}" ]] || popd >/dev/null 2>&1
Expand Down

0 comments on commit b677efc

Please sign in to comment.