]> git.t-rg.ws Git - slackbuilds.git/commitdiff
buf: disable using non-system toolchain
authorfsLeg <fsleg@t-rg.ws>
Sat, 14 Jun 2025 16:59:33 +0000 (19:59 +0300)
committerfsLeg <fsleg@t-rg.ws>
Sat, 14 Jun 2025 16:59:33 +0000 (19:59 +0300)
buf/buf.SlackBuild
buf/buf.info
buf/disable-toolchain-fetching.patch [new file with mode: 0644]

index dd1ec22a4ae51be523207999431e85bb93fce7ad..8db95c8e23421bb6242ac25ad9e6c7e3d7cf1cce 100644 (file)
@@ -73,6 +73,9 @@ cd $PRGNAM-$VERSION
 tar xf $CWD/$PRGNAM-$VERSION-vendored-sources.tar.xz
 chown -R root:root .
 
+# Don't fetch another copy of a toolchain
+patch -p1 < $CWD/disable-toolchain-fetching.patch
+
 mkdir build
 CGO_CPPFLAGS="${SLKCFLAGS}" \
 CGO_CFLAGS="${SLKCFLAGS}" \
index fd7a9c00c6a04c687ba5f7f3dc6d213842356b4b..a0567aa704818225e5ce1459190414eab83ea93b 100644 (file)
@@ -4,7 +4,7 @@ HOMEPAGE="https://buf.build/"
 DOWNLOAD="https://github.com/bufbuild/buf/archive/v1.54.0/buf-1.54.0.tar.gz \
           https://sbo.t-rg.ws/buf-1.54.0-vendored-sources.tar.xz"
 MD5SUM="2869866e74036e973a60cd782f4fd178 \
-        89084ec201a2af87f60968e297609d18"
+        3e95d5a2bd6da0856d25b371f7a53bcf"
 DOWNLOAD_x86_64=""
 MD5SUM_x86_64=""
 REQUIRES="google-go-lang"
diff --git a/buf/disable-toolchain-fetching.patch b/buf/disable-toolchain-fetching.patch
new file mode 100644 (file)
index 0000000..7149d6d
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/go.mod   2025-06-14 19:28:47.062143139 +0300
++++ b/go.mod   2025-06-14 19:31:05.771593795 +0300
+@@ -2,8 +2,6 @@
+ go 1.23.0
+-toolchain go1.24.3
+-
+ require (
+       buf.build/gen/go/bufbuild/bufplugin/protocolbuffers/go v1.36.6-20250121211742-6d880cc6cc8d.1
+       buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.6-20250425153114-8976f5be98c1.1