Commit graph

144088 commits

Author SHA1 Message Date
Sharlatan Hellseher
054fda25eb
gnu: go-github-com-google-go-querystring: Move to golang-web.
* gnu/packages/golang.scm (go-github-com-google-go-querystring): Move
from here ...
* gnu/packages/golang-web.scm: ... to here.

Change-Id: Id2447d337708794bbf1f32791245b0687df5f19d
2024-11-09 21:33:44 +00:00
Sharlatan Hellseher
431ebc223b
gnu: go-github-com-google-go-querystring: Fix indentation.
* gnu/packages/golang.scm (go-github-com-google-go-querystring): Fix indentation.

Change-Id: I5f61abbc5f2697c5b2912007fd924e178c97c740
2024-11-09 21:33:44 +00:00
Sharlatan Hellseher
316ef05c02
gnu: go-github-com-google-go-querystring: Update to 1.1.0.
* gnu/packages/golang.scm (go-github-com-google-go-querystring): Update to 1.1.0.
[native-inputs]: Add go-github-com-google-go-cmp.

Change-Id: I495c34a4a29718fcaaee4d7f3f307ec81895e6d4
2024-11-09 21:33:44 +00:00
Sharlatan Hellseher
58c64ad4d0
gnu: go-golang-org-x-crypto: Update to 0.27.0.
* gnu/packages/golang-build.scm (go-golang-org-x-crypto): Update to 0.27.0.

Change-Id: I949c32fd43cf644ee979348c7d52d91d4ab78632
2024-11-09 21:33:44 +00:00
Sharlatan Hellseher
17f2cc664e
gnu: go-github-com-sergi-go-diff: Update to 1.3.1.
* gnu/packages/golang-xyz.scm (go-github-com-sergi-go-diff): Update to 1.3.1.

Change-Id: I369c2bdbf112a0b16eae1ed7d837a4eece26ea50
2024-11-09 21:33:44 +00:00
Sharlatan Hellseher
4b7a0b83c1
gnu: Remove go-github-com-jba-printsrc.
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
2024-11-09 21:33:44 +00:00
Sharlatan Hellseher
a59917ea8f
gnu: gopls: Update to 0.16.2.
* gnu/packages/golang.scm (gopls): Update to 0.16.2.
[native-inputs]: Remove go-github-com-jba-printsrc, go-github-com-sergi-go-diff,
go-golang-org-x-sys, and go-golang-org-x-tools; add
go-golang-org-x-telemetry.

Change-Id: Ia21d8816796d424c6dc83441469385eaa24f6031
2024-11-09 21:33:43 +00:00
Sharlatan Hellseher
3da934f279
gnu: go-golang-org-x-vuln: Enable tests.
* gnu/packages/golang-build.scm (go-golang-org-x-vuln): Enable tests.

Change-Id: I489bbd6505b9bd1d7fe234fa7e361c7839a452f1
2024-11-09 21:33:43 +00:00
Sharlatan Hellseher
05299e344a
gnu: go-golang-org-x-vuln: Move to golang-build.
* gnu/packages/golang.scm (go-golang-org-x-vuln, govulncheck): Move from
here ...
* gnu/packages/golang-build.scm: ... to here.

Change-Id: I5fc09c4e9e156005f494e532339a05b6c8b395ad
2024-11-09 21:33:43 +00:00
Sharlatan Hellseher
744d2a563d
gnu: go-golang-org-x-vuln: Update to 1.1.3.
* gnu/packages/golang.scm (go-golang-org-x-vuln): Update to 1.1.3.
[propagated-inputs]: Remove go-golang-org-x-exp; add go-golang-org-x-telemetry.
(govulncheck) [native-inputs]: Remove coreutils-minimal.

Change-Id: I01e516597ff905fcda571127610da8c9521597fd
2024-11-09 21:33:43 +00:00
Sharlatan Hellseher
860c68d6c5
gnu: go-github-com-google-go-cmdtest: Move to golang-build.
* gnu/packages/golang-check.scm (go-github-com-google-go-cmdtest): Move
from here ...
* gnu/packages/golang-build.scm: ... to here.

Change-Id: I4e6015ba18c4aa57856df32dd98199f3bcf5dc0c
2024-11-09 21:33:43 +00:00
Sharlatan Hellseher
60498713fd
gnu: go-github-com-google-renameio: Move to golang-build.
* 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
2024-11-09 21:33:43 +00:00
Sharlatan Hellseher
c6683a148f
gnu: go-mvdan-cc-xurls: Rename variable.
* 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
2024-11-09 21:33:43 +00:00
Sharlatan Hellseher
16f960463e
gnu: go-github-com-google-go-cmdtest: Fix indentation
* gnu/packages/golang-check.scm (go-github-com-google-go-cmdtest): Fix indentation

Change-Id: I078f30d53c867805cbbab416f693ddee2a89d3df
2024-11-09 21:33:43 +00:00
Sharlatan Hellseher
1abf207cd2
gnu: go-github-com-google-go-cmdtest: Update to 0.4.0.
* gnu/packages/golang-check.scm (go-github-com-google-go-cmdtest): Update to 0.4.0.

Change-Id: Ia2fcc19cdafeba03d5244dd6faa2e39f1bb10fb6
2024-11-09 21:33:43 +00:00
Sharlatan Hellseher
179bd842d3
gnu: Add go-golang-org-x-telemetry-config.
* gnu/packages/golang-build.scm (go-golang-org-x-telemetry-config): New variable.

Change-Id: I3958fa220149360ef4008b2c93301a41d5f6e063
2024-11-09 21:33:42 +00:00
Sharlatan Hellseher
f75620892b
gnu: Add go-golang-org-x-telemetry.
* gnu/packages/golang-build.scm (go-golang-org-x-telemetry): New variable.

Change-Id: I2a9b53df4f0120a56cf52e4be9ff02660dc7825d
2024-11-09 21:33:42 +00:00
Sharlatan Hellseher
08fc94fa8b
gnu: go-golang-org-x-tools: Update to 0.25.0.
* gnu/packages/golang-build.scm (go-golang-org-x-tools): Update to 0.25.0.
[arguments]: <#:phases>: 'check phase  disable tests for subdir
"go/collgraph", sort alphabetically.
[native-inputs]: Add go-github-com-google-go-cmp.

Change-Id: I8419f09d283d1332351a0620269ef39e2db32f09
2024-11-09 21:33:42 +00:00
Sharlatan Hellseher
9e897dabca
gnu: kubo: Fix build.
* gnu/packages/ipfs.scm (kubo): Fix build.
[arguments]: <#:phases>: Swap 'fix-embed-go-libp2p-asm-util with
'fix-embed-files, which implements generalized solution to fix embed
files issue.

Change-Id: I1cc9b6eaf7ca72c0cea81387c9b80853b22dcf83
2024-11-09 21:33:42 +00:00
Sharlatan Hellseher
e703f973eb
gnu: go-github-com-libp2p-go-libp2p: Fix build.
* gnu/packages/ipfs.scm (go-github-com-libp2p-go-libp2p): Fix build.
[arguments]: <#:phases>: Swap 'fix-embed-go-libp2p-asm-util with
'fix-embed-files, which implements generalized solution to fix embed
files issue.

Change-Id: Ic20c0c2855d8add4e80e33cd617f05bd90f56628
2024-11-09 21:33:42 +00:00
Sharlatan Hellseher
9d093bc601
gnu: go-github-com-ipfs-go-ds-badger: Fix build.
* gnu/packages/ipfs.scm (go-github-com-ipfs-go-ds-badger): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.

Change-Id: I78f43ec2598ab6644e4be0d4d0c2fec665f2551b
2024-11-09 21:33:42 +00:00
Sharlatan Hellseher
90a82e1624
gnu: go-github-com-prometheus-statsd-exporter: Fix build.
* 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
2024-11-09 21:33:42 +00:00
Sharlatan Hellseher
449fa18bf6
gnu: go-github-com-prometheus-exporter-toolkit: Fix build.
* gnu/packages/prometheus.scm (go-github-com-prometheus-exporter-toolkit):
Fix build
[arguments]: <#:phases>: Add 'fix-embed-editions-defaults-binpb phase;
remove 'disable-failing-tests in favor of "-skip" test flags.
[native-inputs]: Add go-google-golang-org-protobuf.

Change-Id: If573aa261adc3a136a4907267d1427a9f9cfb4d9
2024-11-09 21:33:42 +00:00
Sharlatan Hellseher
f40fde0e85
gnu: go-github-com-prometheus-client-golang: Fix build.
* gnu/packages/prometheus.scm (go-github-com-prometheus-client-golang): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.

Change-Id: Ifdd422e4574291d7a101b28862bc129262b48196
2024-11-09 21:33:42 +00:00
Sharlatan Hellseher
560c64a23b
gnu: go-github-com-prometheus-common: Fix build.
* gnu/packages/prometheus.scm (go-github-com-prometheus-common): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.

Change-Id: Ia213327d15288315b54b623c4a15837d7d895a69
2024-11-09 21:33:42 +00:00
Sharlatan Hellseher
d580f6ae81
gnu: go-github-com-dgraph-io-badger: Fix build.
* gnu/packages/golang-xyz.scm (go-github-com-dgraph-io-badger): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files; remove
'disable-failing-tests in favor of "-skip" test option.

Change-Id: Ib4d91509a0c6a83c8108a47ae2bd6254df53b430
2024-11-09 21:33:41 +00:00
Sharlatan Hellseher
191e950fc3
gnu: go-github-com-libp2p-go-msgio: Fix build.
* gnu/packages/golang-xyz.scm (go-github-com-libp2p-go-msgio): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.

Change-Id: I39c59d5483d5af7968cde30a883fbcdaf08bebb1
2024-11-09 21:33:41 +00:00
Sharlatan Hellseher
73d7039c5b
gnu: go-github-com-golang-groupcache: Fix build.
* gnu/packages/golang-web.scm (go-github-com-golang-groupcache): Fix build.
[arguments]: <#:phases>: Add 'fix-embed-files.

Change-Id: I69f1df0a64176d3a0483ebf38840302d7e5a5d18
2024-11-09 21:33:41 +00:00
Sharlatan Hellseher
dabcd9c45a
gnu: go-github-com-golang-groupcache: Fix indentation.
* gnu/packages/golang-web.scm (go-github-com-golang-groupcache): Fix indentation.

Change-Id: I40bf67a27f71844669deedd4106aec51760a0d46
2024-11-09 21:33:41 +00:00
Sharlatan Hellseher
41f1067b99
gnu: go-github-com-golang-groupcache: Update to 0.0.0-20210331224755-41bb18bfe9da.
* gnu/packages/golang-web.scm (go-github-com-golang-groupcache): Update to 0.0.0-20210331224755-41bb18bfe9da.

Change-Id: I9dbc112050259ad609d2b1e0e3a9dcb742473a06
2024-11-09 21:33:41 +00:00
Sharlatan Hellseher
4b88b53d01
gnu: go-google-golang-org-protobuf: Enable all tests
* gnu/packages/golang-build.scm (go-google-golang-org-protobuf)
[arguments]: <#:phases>: Remove 'disable-failing-tests.

Change-Id: Iaec1e3238765e20ce7caecf60cdae7bc236161fc
2024-11-09 21:33:41 +00:00
Sharlatan Hellseher
cd590445c2
gnu: go-github-com-golang-protobuf: Update to 1.5.4.
* gnu/packages/golang-build.scm (go-github-com-golang-protobuf): Update to 1.5.4.
[arguments]: <#:phases>: Add 'fix-embed-files.
[native-inputs]: Add go-github-com-google-go-cmp.

Change-Id: I9ee7bb07cd9718345bace243ca2bf0afa99ef411
2024-11-09 21:33:41 +00:00
Sharlatan Hellseher
9a41ef9424
gnu: go-google-golang-org-protobuf: Update to 1.34.2.
* gnu/packages/golang-build.scm (go-google-golang-org-protobuf): Update to 1.34.2.

Change-Id: I4151652887b855b5af1ecddad2d03e3aa9dc8500
2024-11-09 21:33:41 +00:00
Sharlatan Hellseher
305ccb64eb
gnu: go-golang-org-x-xerrors: Fix indentation.
* gnu/packages/golang-build.scm (go-golang-org-x-xerrors): Fix
indentation, apply new list style.

Change-Id: I2c83816293f299cac9bc641a7710fedcc1419f3a
2024-11-09 21:33:41 +00:00
Sharlatan Hellseher
41d93b749e
gnu: go-golang-org-x-xerrors: Update to 0.0.0-20200804184101-5ec99f83aff1.
* gnu/packages/golang-build.scm (go-golang-org-x-xerrors): Update to 0.0.0-20200804184101-5ec99f83aff1.

Change-Id: I85ba367e0b1b1f38f10326f8a29e664e59c3dc07
2024-11-09 21:33:41 +00:00
Sharlatan Hellseher
42f88db23c
gnu: go-golang-org-x-text: Update to 0.18.0.
* gnu/packages/golang-build.scm (go-golang-org-x-text): Update to 0.18.0.

Change-Id: I3a00af2d3392d1a3e20e95883e385a06f62d4c80
2024-11-09 21:33:40 +00:00
Sharlatan Hellseher
bc3c274af8
gnu: go-golang-org-x-term: Update to 0.24.0.
* gnu/packages/golang-build.scm (go-golang-org-x-term): Update to 0.24.0.

Change-Id: Ib4fab73d7bb7d214a71498ec2f287ee276d3ad5b
2024-11-09 21:33:40 +00:00
Sharlatan Hellseher
4a4feb7c01
gnu: go-golang-org-x-sys: Update to 0.25.0.
* gnu/packages/golang-build.scm (go-golang-org-x-sys): Update to 0.25.0.

Change-Id: I4bdcca9010542c8fc99eb387457ecb888213ec06
2024-11-09 21:33:40 +00:00
Sharlatan Hellseher
5f19ee0bb8
gnu: go-golang-org-x-net: Update to 0.29.0.
* gnu/packages/golang-build.scm (go-golang-org-x-net): Update to 0.29.0.

Change-Id: Ice5bd90a97d203537ef2c8e860423586c0c29294
2024-11-09 21:33:40 +00:00
Sharlatan Hellseher
f9ec9f81ee
gnu: go-golang-org-x-mod: Update to 0.21.0.
* gnu/packages/golang-build.scm (go-golang-org-x-mod): Update to 0.21.0.

Change-Id: Ic1ade4156426e10b2cb26c8b6271f3ff8a5e1631
2024-11-09 21:33:40 +00:00
Sharlatan Hellseher
19dfc8c8a2
gnu: go-golang-org-x-image: Update to 0.20.0.
* gnu/packages/golang-build.scm (go-golang-org-x-image): Update to 0.20.0.

Change-Id: I3ef3746b1c7c44b7d6d6abe9caeb2bfc24d9635e
2024-11-09 21:33:40 +00:00
Sharlatan Hellseher
8bea1e05fa
gnu: packages/golang-crypto: Apply #:subdir parameter.
* gnu/packages/golang-crypto.scm (go-github-com-decred-dcrd-crypto-blake256,
go-github-com-decred-dcrd-dcrec-secp256k1-v4) [source]: Apply new
<#:subdir> parameter for monorepo projects.

Change-Id: I85004b257c767ce202129e621d78b285d4578f7a
2024-11-09 21:33:40 +00:00
Christina O'Donnell
a8d5d08708
import/go: Add diagnostics.
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>
2024-11-09 21:33:40 +00:00
Christina O'Donnell
296c78aab6
import/go: Account for monorepo modules in the Go importer.
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>
2024-11-09 21:33:40 +00:00
Christina O'Donnell
18a77fb3f8
build-system/go: Add subdir parameter to go-version->git-ref.
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>
2024-11-09 21:33:40 +00:00
Efraim Flashner
ecdca86e1c
gnu: go-1.20: Build with gccgo-12 on some systems.
* 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>
2024-11-09 21:33:39 +00:00
Brennan Vincent
867d7a8b2f
gnu: go-1.23: Update to 1.23.1.
* gnu/packages/golang.scm (go-1.23): Update to 1.23.1.

Change-Id: I2f5c377ae8009facd899d1cd3d0f6e2fe89fcf14
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2024-11-09 21:33:39 +00:00
Troy Figiel
56cc37bfb2
build-system/go: Allow providing additional test flags.
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
2024-11-09 21:33:39 +00:00
Sharlatan Hellseher
7f6a9ecaa3
import/go: Add comment about monorepo.
* guix/import/go.scm: Clarify what is monorepo in Go ecosystem.

Change-Id: I86e35db4f02bfacb3df15a330ca1fde373b3cc13
2024-11-09 21:33:39 +00:00
Sharlatan Hellseher
75d1ca21f3
gnu: go-github-com-aws-aws-sdk-go-v2: Update to 1.30.5.
* gnu/packages/golang-web.scm (go-github-com-aws-aws-sdk-go-v2): Update to 1.30.5.
[propagated-inputs]: Remove go-github-com-google-go-cmp.

Change-Id: I87c1cf86c707fb3c4e369d58ac69a2a8b806ef80
2024-11-09 21:33:39 +00:00