Skip to content

Commit 1f64b41

Browse files
author
Nicolas Sterchele
authored
Merge pull request #1 from peopledoc/fix/full_path_make
Add -trimpath to go build
2 parents c990c3d + c9353ec commit 1f64b41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ GOBUILD=$(GOCMD) build
1212
GOCLEAN=$(GOCMD) clean
1313
GOGENERATE=$(GOCMD) generate
1414
GOTEST=$(GOCMD) test
15+
GOBUILDFLAGS= "-trimpath"
1516

1617
.PHONY: devel-deps
1718
devel-deps:
@@ -22,7 +23,7 @@ devel-deps:
2223

2324
.PHONY: build
2425
build:
25-
$(GOBUILD) -o $(BINDIR)/$(BINNAME) -v
26+
$(GOBUILD) -o $(BINDIR)/$(BINNAME) -v $(GOBUILDFLAGS)
2627

2728
.PHONY: test
2829
test:

0 commit comments

Comments
 (0)