Skip to content

Commit

Permalink
Add sudo when removing /go/pkg because it's required some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ykadowak committed Jun 30, 2023
1 parent 2b261f5 commit 69cdb7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.d/dependencies.mk
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ go/download:
.PHONY: go/deps
## install Go package dependencies
go/deps:
sudo rm -rf /go/pkg
rm -rf $(ROOTDIR)/vendor \
/go/pkg \
$(GOCACHE) \
$(ROOTDIR)/go.sum \
$(ROOTDIR)/go.mod
cp $(ROOTDIR)/hack/go.mod.default $(ROOTDIR)/go.mod
GOPRIVATE=$(GOPRIVATE) go mod tidy
go clean -cache -modcache -testcache -i -r
sudo rm -rf /go/pkg
rm -rf $(ROOTDIR)/vendor \
/go/pkg \
$(GOCACHE) \
$(ROOTDIR)/go.sum \
$(ROOTDIR)/go.mod
Expand Down

0 comments on commit 69cdb7a

Please sign in to comment.