Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Use -trimpath while building #685

Closed
wants to merge 1 commit into from
Closed

Conversation

rumpl
Copy link
Member

@rumpl rumpl commented Oct 11, 2019

- What I did

Add the new -trimpath flag from go 1.13 which instructs the compiler to remove all file system paths from the compiled executable. With this we will see module paths in stack trace and not absolute paths. This also helps have reproducible builds (same executable bit-by-bit even if compiled on different machines).

- A picture of a cute animal (not mandatory but encouraged)
image

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
@ndeloof
Copy link
Contributor

ndeloof commented Oct 11, 2019

Build still relies on golang 1.12.9 as we use dockercore/golang-cross

@rumpl rumpl closed this Oct 11, 2019
@rumpl rumpl deleted the feat-trimpath branch October 18, 2019 08:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants