Skip to content

Commit

Permalink
Keep GOCACHE inside the project
Browse files Browse the repository at this point in the history
This is needed so that the source debs can build under buildd, which
have a non-existent/non-writeable home directory. As an aside it also
keeps everything self contained.
  • Loading branch information
Joel Sing committed May 22, 2019
1 parent 14a4dbe commit 79c1a74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,6 +2,7 @@
*.swp
*~
.githubtoken
.gocache
.venv
/bin
/pkg
Expand Down
2 changes: 2 additions & 0 deletions Makefile
@@ -1,5 +1,6 @@
PROJECTPATH = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
export GOPATH := $(PROJECTPATH)
export GOCACHE := $(GOPATH)/.gocache
export PATH := /usr/lib/go-1.12/bin:$(PATH)

project = hockeypuck
Expand All @@ -17,6 +18,7 @@ build:
clean: clean-go

clean-go:
go clean -cache
rm -rf $(PROJECTPATH)/bin
rm -rf $(PROJECTPATH)/pkg

Expand Down

0 comments on commit 79c1a74

Please sign in to comment.