From 4912affe93a936c94c2e6c0abb552275e08db3e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 26 Feb 2024 14:37:00 +0100 Subject: [PATCH] debian/rules: Explicitly set GOTOOLCHAIN=local This is something that also dh-golang does but for some reason it's not picked up during build and so we may fail if bumping the toolchain --- debian/rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/rules b/debian/rules index 482220538..a7a105a90 100755 --- a/debian/rules +++ b/debian/rules @@ -16,6 +16,10 @@ export DPKG_GENSYMBOLS_CHECK_LEVEL := 4 # Copy in build directory all content to embed export DH_GOLANG_INSTALL_ALL := 1 +# We want to take whatever ubuntu propose to us (as it won’t download a newer version), +# as long as it matches the go.mod go stenza which is the language requirement. +export GOTOOLCHAIN := local + # Use the debian cargo wrapper export CARGO_PATH := /usr/share/cargo/bin/cargo