[PATCH 13/18] packaging: use "go install" to install spread
authorZygmunt Krynicki <zygmunt.krynicki@canonical.com>
Thu, 30 May 2024 09:43:24 +0000 (11:43 +0200)
committerZygmunt Krynicki <me@zygoon.pl>
Fri, 19 Jul 2024 05:15:23 +0000 (07:15 +0200)
The former go get command is deprecated with current Go, and no longer works
correctly.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Gbp-Pq: Name 0014-PATCH-13-18-packaging-use-go-install-to-install-spre.patch

packaging/debian-sid/tests/integrationtests

index 7f9b2728a3449949a9689f4824cad1d96d33f5f4..2267e715377620407348afa11b8c975db46e8049 100644 (file)
@@ -43,7 +43,7 @@ snap install --classic go
 # shellcheck disable=SC1091
 . /etc/os-release
 export GOPATH=/tmp/go
-/snap/bin/go get -u github.com/snapcore/spread/cmd/spread
+/snap/bin/go install github.com/snapcore/spread/cmd/spread@latest
 /tmp/go/bin/spread -v "autopkgtest:${ID}-${VERSION_ID}-$(dpkg --print-architecture)":tests/smoke/
 
 # store journal info for inspectsion