diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a57f32b..102b85a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -103,8 +103,9 @@ jobs: - name: Get project dependencies run: | git submodule update --init --recursive - go mod download - go mod vendor + GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw + find ./go-mod/ -maxdepth 1 ! -name "cache" ! -name "go-mod" -exec rm -rf {} \; + sed -i 's/#export GOMODCACHE=$(PWD)\/go-mod/export GOMODCACHE=$(PWD)\/go-mod/' Makefile - name: Create full source ZIP archive and Signature if: github.event_name == 'release' && matrix.goarch == 'amd64' && matrix.goamd64 == 'v1' run: | diff --git a/.gitignore b/.gitignore index 71c6bf1..3976ccc 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ bpf_bpfeb*.go bpf_bpfel*.go dae -outline.json \ No newline at end of file +outline.json +go-mod/ diff --git a/Makefile b/Makefile index da4c06b..40b7bc8 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,8 @@ else STRIP_FLAG := -strip=$(STRIP_PATH) endif +#export GOMODCACHE=$(PWD)/go-mod + # Get version from .git. date=$(shell git log -1 --format="%cd" --date=short | sed s/-//g) count=$(shell git rev-list --count HEAD)