[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33741: Packages built with Go 1.10+ keep unnecessary references to G
bug#33741: Packages built with Go 1.10+ keep unnecessary references to Go inputs
Fri, 14 Dec 2018 16:28:07 +0100
mu4e 1.0; emacs 26.1
Go binaries are statically build, but since Go 1.10, the full paths to
the Go libraries are kept in the binaries, which results in the Go
dependencies being part of the package closure:
$ guix gc --references $(./pre-inst-env guix build --no-grafts kurly)
Previously, they did not:
$ guix gc --references $(guix build --no-grafts kurly)
It seems to be an upstream bug:
It's still unresolved and only planned for Go 1.13.
Note that adding
to the build system does not work, because we need to trim the hash too.
-trimpath supports only one parameter, so we can't use it for this purpose.
We could use Boyer-Moore to replace the hashes of all Go dependencies.
We must be careful to only replace paths to Go libraries.
Description: PGP signature
|[Prev in Thread]
||[Next in Thread]|
- bug#33741: Packages built with Go 1.10+ keep unnecessary references to Go inputs,
Pierre Neidhardt <=