-
- Downloads
import: go: Append version to symbol name in the pinned version mode.
This allows importing packages with complicated version specific dependency chains without the package symbol names colliding. * doc/guix.texi (Invoking guix import): Document the --pin-versions option. Mention that a specific version can be imported. Remove the experimental warning. * guix/import/go.scm (go-module->guix-package-name)[version]: Add optional argument. Rewrite the character translation in terms of string-map. (go-module->guix-package): Conditionally use dependencies whose symbol include their version, based no the value of the PIN-VERSIONS? argument. * guix/import/utils.scm (package->definition): Add a new case where the full version string is appended to the package symbol. * guix/scripts/import.scm (guix-import): Correctly print forms starting with '(define-public [...]'. * guix/scripts/import/go.scm (guix-import-go): Conditionally include the version in the package symbols defined.
Showing
- doc/guix.texi 11 additions, 3 deletionsdoc/guix.texi
- guix/import/go.scm 29 additions, 17 deletionsguix/import/go.scm
- guix/import/utils.scm 5 additions, 2 deletionsguix/import/utils.scm
- guix/scripts/import.scm 2 additions, 1 deletionguix/scripts/import.scm
- guix/scripts/import/go.scm 10 additions, 7 deletionsguix/scripts/import/go.scm
Loading
Please register or sign in to comment