* gnu/packages/golang.scm (go-github-com-google-go-querystring): Move
from here ...
* gnu/packages/golang-web.scm: ... to here.
Change-Id: Id2447d337708794bbf1f32791245b0687df5f19d
It's not in use by any packages in Guix, no updates for 3y.
* gnu/packages/golang.scm (go-github-com-jba-printsrc): Delete variable.
Change-Id: I6bfa658be1cf2846fa94d408da3baf11da01d779
* gnu/packages/golang.scm (go-golang-org-x-vuln, govulncheck): Move from
here ...
* gnu/packages/golang-build.scm: ... to here.
Change-Id: I5fc09c4e9e156005f494e532339a05b6c8b395ad
* gnu/packages/golang-check.scm (go-github-com-google-go-cmdtest): Move
from here ...
* gnu/packages/golang-build.scm: ... to here.
Change-Id: I4e6015ba18c4aa57856df32dd98199f3bcf5dc0c
* gnu/packages/golang-xyz.scm (go-github-com-google-renameio,
go-github-com-google-renameio-v2): Move from here ...
* gnu/packages/golang-build.scm: ... to here.
Change-Id: I0323f61120c42f1e4249a3279576d50789c418d8
* gnu/packages/golang-web.scm (go-mvdan-cc-xurls): Rename variable to
go-mvdan-cc-xurls-v2 to reflect current version and Golang import path
as seen in go.mod.
(xurls): Inherit from go-mvdan-cc-xurls-v2.
* gnu/packages/golang.scm (gopls) [native-inputs]: Remove
go-mvdan-cc-xurls; add go-mvdan-cc-xurls-v2.
* gnu/packages/messaging.scm (senpai): Likewise.
* gnu/packages/web.scm (miniflux): Likewise.
Change-Id: I16757182dae8b4638d1e431ad1663eee22f76ad1
* 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