* gnu/packages/prometheus.scm (go-github-com-prometheus-statsd-exporter):
Fix build
[arguments]: <#:phases>: Rework 'copy-input-to-vendor-directory and
'remove-vendor-directory by consolidating and simplifying them into
'fix-embed-files.
Change-Id: I5c255ea17dc9926bf9e2ea9a0a0e662afe9c2e5d
guix/import/go.scm (go-module-available-versions): Add warning when fetching
a list of versions from the proxy fails and raise exception when no version
can be found at all.
(module-path->repository-root): Warn when all attempts to find the repository
root have failed.
(fetch-module-meta-data): Raise exception when no meta element could be found.
(go-module->guix-package): Catch general exceptions and warn that the package
could not be imported.
Change-Id: I6dcdccc71f54bfec7110f6bfc5aeb8855502d1e3
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This change allows for importing of modules situated in repos where they're
not at the root directory.
* guix/import/go.scm (go-module-verstion-string): Delete
(go-module-version-info): New procedure
(module-path->repository-root): Add parameter
(vcs->origin): Add parameter
(path-diff): New procedure
Change-Id: If50f7a951ce8e527e5ea44ed24db10d6a3676ff0
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This implements logic to handle cases where Go can have multiple modules
at different versions within a single repository. It distinguishes their
releases by using tags along with their subdirectories. See
https://go.dev/ref/mod#vcs-version.
* guix/build-system/go.scm (go-version->git-ref): Add <#:subdir> keyword
parameter and extend condition checks.
Change-Id: I68bc9e785e49877bb0b756de8458308549f4c957
Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
* gnu/packages/golang.scm (go-1.20)[native-inputs]: Don't replace the
gccgo input on architectures bootstrapping go with it.
Change-Id: I26831b2bcfe623f6eb0ac7c16b463e5e873110e6
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
By allowing the use of test flags, we can more precisely skip failing tests
(for go version >=1.20), disable the vetting stage or select a subset of tests
(e.g. if an upstream flag is provided to skip tests which require a network
connection). At the moment, the only way around these test failures is to
remove the test file completely or patch the code ourselves.
* guix/build-system/go.scm (go-build): Add test-flags variable.
(go-cross-build): Add test-flags variable.
* guix/build/go-build-system.scm (check): Pass the additional test flags to the invoke call.
* doc/guix.texi (go-build-system): Document <#:test-flags> parameter.
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Change-Id: I4015870fbbc15503cb405fe9ef6032953a5ff17f
Not in use by any packages in Guix, no updates for 4y.
* gnu/packages/golang.scm (go-github-com-rylans-getlang): Delete variable.
Change-Id: I6a7e1201d52166fc43b5e99e38181c6a5dedea69
Not in use by any packages in Guix: "This repository has been archived by
the owner on May 25, 2021. It is now read-only."
* gnu/packages/golang.scm (go-github-com-kyoh86-xdg): Delete variable.
Change-Id: If80ceb32e4624f08d04cb0270341cac41e6b11fb
* gnu/packages/golang.scm (go-github-com-deckarep-golang-set): Move from here ...
* gnu/packages/golang-xyz.scm: ... to here.
Change-Id: I10c1c8b2e0ad69913068cf89bc646a4ceb471c8f
* gnu/packages/golang-web.scm (go-html2text): New variable.
(go-github-com-jaytaylor-html2text) [source]: Adjust module import path
to use in CLI.
Change-Id: Ia440d027cb02a1d6584c6f32ff81353b22d4145a
* gnu/packages/golang.scm (go-github-com-jaytaylor-html2text): Move from here ...
* gnu/packages/golang-web.scm ... to here.
Change-Id: Ie2e79aa4a7f034579433f9ea7d55bcfdea1b90d8
* gnu/packages/golang.scm (go-github-com-gogs-chardet): Move from here ...
* gnu/packages/golang-xyz.scm: ... to here.
Change-Id: I88666bcaf2e8ea62274a0b01a5cf7247da160fa2
Not in use by any other packages, not maintained fork of
<https://github.com/kr/pretty>.
* gnu/packages/golang.scm (go-github-com-niemeyer-pretty): Delete variable.
Change-Id: I6b3340fa95a6bdf6735cace1bcd979766afd6453
gnu/packages/golang.scm (go-github-com-lithammer-fuzzysearch): Move from
here ...
gnu/packages/golang-xyz.scm: ... to here.
Change-Id: Ica80efe706f97694f5f6584fe64f9a764e5d082b