From 5a27d7b53cc8d8052337a7c5a35dadbb998e369c Mon Sep 17 00:00:00 2001 From: zsdc Date: Fri, 24 Jun 2022 20:10:46 +0300 Subject: Go: T4472: Added compatibility with new Go versions * removed dependency from `golang` package with an old version * added environment variable to disable module-aware mode in Go 1.16+, to make build possible using latest Go --- debian/control | 2 +- debian/rules | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 09dab18..3aab940 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Maintainer: VyOS Package Maintainers Homepage: https://github.com/xenserver Standards-Version: 4.1.4 -Build-Depends: debhelper (>= 12), gawk, golang +Build-Depends: debhelper (>= 12), gawk Vcs-Git: https://github.com/xenserver/xe-guest-utilities Package: vyos-xe-guest-utilities diff --git a/debian/rules b/debian/rules index c9d0d84..3668f41 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,9 @@ #!/usr/bin/make -f #export DH_VERBOSE=1 +# Disable module-aware mode, required for compatibility with Go 1.16+ +export GO111MODULE=off + %: dh $@ --with systemd -- cgit v1.2.3