Skip to content

Commit

Permalink
Makefile: set -trimpath on build
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
unknwon committed Oct 25, 2019
1 parent a887bed commit c9e712d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -33,14 +33,14 @@ govet:
$(GOVET) models pkg routes

build: $(GENERATED)
go build $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)' -o gogs
go build $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)' -trimpath -o gogs

build-dev: $(GENERATED) govet
go build $(BUILD_FLAGS) -tags '$(TAGS)' -o gogs
go build $(BUILD_FLAGS) -tags '$(TAGS)' -trimpath -o gogs
cp '$(GOPATH)/bin/gogs' .

build-dev-race: $(GENERATED) govet
go build $(BUILD_FLAGS) -race -tags '$(TAGS)' -o gogs
go build $(BUILD_FLAGS) -race -tags '$(TAGS)' -trimpath -o gogs

pack:
rm -rf $(RELEASE_GOGS)
Expand Down

0 comments on commit c9e712d

Please sign in to comment.