diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm index 88dccc2ae2..e1ddfc6c38 100644 --- a/gnu/packages/docker.scm +++ b/gnu/packages/docker.scm @@ -221,6 +221,13 @@ Python without keeping their credentials in a Docker configuration file.") (("exec\\.LookPath\\(\"unpigz\"\\)") (string-append "\"" (assoc-ref inputs "pigz") "/bin/unpigz\", error(nil)")))))) + (add-before 'build 'trim-store-references + (lambda* (#:key import-path #:allow-other-keys) + (substitute* (string-append "src/" import-path "/Makefile") + ;; Pass the '-trimpath' option down to 'go build' in order + ;; to avoid spurious store references. + (("^GO_BUILD_FLAGS=") + "GO_BUILD_FLAGS=-trimpath")))) (replace 'build (lambda* (#:key import-path #:allow-other-keys) (with-directory-excursion (string-append "src/" import-path)