summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-01-13 12:46:15 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-06-29 09:36:56 +0100
commit0df957eecc536e1d0a5722b47dda1563439bbe04 (patch)
tree7da0c97d57685983c6a553c11300fc0b491bf63c /gnu
parent7e7e91b15986920e889b13a533cee0ccb5005025 (diff)
downloadguix-patches-0df957eecc536e1d0a5722b47dda1563439bbe04.tar
guix-patches-0df957eecc536e1d0a5722b47dda1563439bbe04.tar.gz
build/go: Use trimpath go flag.
Go 1.13 introduced[1] a new "trimpath" flag in charge of removing the references to the go toolchain in the produced ELFs. We used to remove these references using the "remove-go-reference" function. This function was executed after go install. By using this new trimpath flag, we don't have to remove any store path from the ELFs produced by go install. We're not using any go older than 1.13 anymore, it's safe to remove these functions. [1] https://go.dev/doc/go1.13 -trimpath remove all file system paths from the resulting executable. Instead of absolute file system paths, the recorded file names will begin either a module path@version (when using modules), or a plain import path (when using the standard library, or GOPATH). * guix/build/go-build-system.scm (build): Add -trimpath (%standard-phases): Remove remove-go-references. (remove-go-references): Remove. Change-Id: Idcae366d226da5ce095693f81fd33133fd1d70d6 Co-authored-by: Picnoir <picnoir@alternativebit.fr> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions