Skip to content

Commit

Permalink
use go clean -modcache to delete module cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Bich Le committed Apr 19, 2020
1 parent 6fd03d7 commit 2c5941d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SHELL := bash
SRC_DIR=$(shell pwd)
BUILD_DIR=$(SRC_DIR)/build
GOPATH_DIR=$(BUILD_DIR)/gopath
GO_TOOLCHAIN=$(BUILD_DIR)/go
GO_TOOLCHAIN ?= $(BUILD_DIR)/go
GO_DOWNLOAD_URL=https://dl.google.com/go/go1.13.7.linux-amd64.tar.gz
GOSRC=$(GOPATH_DIR)/src
PF9_DIR=$(GOSRC)/github.com/platform9
Expand Down Expand Up @@ -115,17 +115,18 @@ operator: $(OPERATOR_EXE)

default-http: $(DEFAULT_HTTP_EXE)

clean:
clean: clean-gopath
rm -rf $(BUILD_DIR)

clean-gopath:
go clean -modcache
rm -rf $(GOPATH_DIR)

clean-vendor:
rm -rf $(VENDOR_DIR)

operator-clean:
rm -f $(OPERATOR_STAGE_DIR)
rm -rf $(OPERATOR_STAGE_DIR)

default-http-clean:
rm -f $(DEFAULT_HTTP_EXE)
Expand Down

0 comments on commit 2c5941d

Please sign in to comment.