Marius Bakke skriver: > Marius Bakke skriver: > >> * guix/build/go-build-system.scm (build): Add '-trimpath' to the 'go install' >> invocation. >> (remove-store-references, remove-go-references): Remove procedures. >> (%standard-phases): Don't include remove-go-references. >> * gnu/packages/docker.scm (docker)[arguments]: Add the '-trimpath' option to >> the build flags. Remove phase remove-go-references. >> * gnu/packages/uucp.scm (nncp)[arguments]: Likewise. [...] > Docker explodes from 764.4 MiB to 1215.5 MiB with this patch even though > it does use the '-trimpath' option. Perhaps -trimpath does not work as > well with dynamically linked executables as it does for static? The size difference comes from containerd, which has a custom build system that does not add -trimpath. After adding the following hunk: