Skip to content

Commit

Permalink
gh actions: remove unnecessary GOPATH in go-lint
Browse files Browse the repository at this point in the history
make generate-k8s-api no longer relies on the GOPATH. Therefore, it can
be moved when executing the checks in the GH action.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
  • Loading branch information
mhofstetter committed Mar 31, 2023
1 parent 6621e9b commit 06a366b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/lint-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ jobs:
# Set GOBIN to ensure 'go install' binaries end up in the same directory
# as the one actions/setup-go adds to PATH, regardless of GOPATH.
export GOBIN="$HOME/go/bin"
# check-k8s-code-gen.sh needs a GOPATH set that contains the Cilium repo at src/github.com/cilium/cilium.
export GOPATH="$GITHUB_WORKSPACE"
cd src/github.com/cilium/cilium
contrib/scripts/check-k8s-code-gen.sh

0 comments on commit 06a366b

Please sign in to comment.