Skip to content

Commit

Permalink
chore: remove go mod vendor check and action
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Giese <[email protected]>
  • Loading branch information
tobiasgiese committed Jul 17, 2024
1 parent c94a0f9 commit 9008124
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,6 @@ jobs:
- name: test bindata/scripts
run: make test-bindata-scripts

modules:
name: check go modules
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.22
uses: actions/setup-go@v2
with:
go-version: 1.22.x

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: check go modules are up to date
run: make check-deps

manifests:
name: check manifests
runs-on: ubuntu-latest
Expand Down
9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,7 @@ undeploy-k8s: export OPERATOR_EXEC=kubectl
undeploy-k8s: undeploy

deps-update:
go mod tidy && \
go mod vendor

check-deps: deps-update
@set +e; git diff --quiet HEAD go.sum go.mod vendor; \
if [ $$? -eq 1 ]; \
then echo -e "\ngo modules are out of date. Please commit after running 'make deps-update' command\n"; \
exit 1; fi
go mod tidy

$(GOLANGCI_LINT): ; $(info installing golangci-lint...)
$(call go-install-tool,$(GOLANGCI_LINT),github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_VER))
Expand Down

0 comments on commit 9008124

Please sign in to comment.