Skip to content

Commit

Permalink
Trim $GOPATH from source path stacktraces (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
cnr committed Sep 4, 2019
1 parent 707ca11 commit 6cad43a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ GODOWNLOADER=$(BIN)/godownloader
## Configurations.
IMAGE?=buildtools
GORELEASER_FLAGS?=--rm-dist
GCFLAGS:=-gcflags 'all=-trimpath=${GOPATH}'
LDFLAGS:=-ldflags '-extldflags "-static" -X github.com/fossas/fossa-cli/cmd/fossa/version.version=$(shell git rev-parse --abbrev-ref HEAD) -X github.com/fossas/fossa-cli/cmd/fossa/version.commit=$(shell git rev-parse HEAD) -X "github.com/fossas/fossa-cli/cmd/fossa/version.goversion=$(shell go version)" -X github.com/fossas/fossa-cli/cmd/fossa/version.buildType=development'

all: build
Expand Down Expand Up @@ -57,7 +58,7 @@ build: $(BIN)/fossa
$(BIN)/fossa: $(GO_BINDATA) $(GENNY) $(DEP) $(shell find . -name *.go)
dep check
go generate ./...
go build -o $@ $(LDFLAGS) github.com/fossas/fossa-cli/cmd/fossa
go build -o $@ $(GCFLAGS) $(LDFLAGS) github.com/fossas/fossa-cli/cmd/fossa

# Building various Docker images.
.PHONY:
Expand Down

0 comments on commit 6cad43a

Please sign in to comment.