This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new a4251d5  chore(build): strip full path from stackstraces
a4251d5 is described below

commit a4251d580480d0d5fe368d2158522266be555e2c
Author: lburgazzoli <lburgazz...@gmail.com>
AuthorDate: Wed Jul 3 16:19:02 2019 +0200

    chore(build): strip full path from stackstraces
---
 script/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/script/Makefile b/script/Makefile
index 61d346c..500d399 100644
--- a/script/Makefile
+++ b/script/Makefile
@@ -23,6 +23,7 @@ LOCAL_REPOSITORY := /tmp/artifacts/m2
 IMAGE_NAME := docker.io/apache/camel-k
 RELEASE_GIT_REMOTE := upstream
 GIT_COMMIT := $(shell git rev-list -1 HEAD)
+GO_PATH := $(shell go env GOPATH)
 
 # For signing binary artifacts
 GPG_PASS := $(GPG_PASS)
@@ -35,7 +36,7 @@ STAGING_IMAGE_NAME := docker.io/camelk/camel-k
 PACKAGE_ARTIFACTS_STRATEGY := copy
 
 GOLDFLAGS += -X main.GitCommit=$(GIT_COMMIT)
-GOFLAGS = -ldflags "$(GOLDFLAGS)"
+GOFLAGS = -ldflags "$(GOLDFLAGS)" -gcflags=-trimpath=$(GO_PATH) 
-asmflags=-trimpath=$(GO_PATH)
 
 define LICENSE_HEADER
 Licensed to the Apache Software Foundation (ASF) under one or more
@@ -107,7 +108,7 @@ build-operator:
        go build $(GOFLAGS) -o camel-k ./cmd/manager/*.go
 
 build-kamel:
-       go build -o kamel ./cmd/kamel/*.go
+       go build $(GOFLAGS) -o kamel ./cmd/kamel/*.go
 
 build-builder:
        env GOOS=linux go build -o builder ./cmd/builder/*.go

Reply via email to