From a46fd895a6e55724d62ba4e1b1e54680439aade6 Mon Sep 17 00:00:00 2001 From: Alessandro Olivero Date: Mon, 11 Sep 2023 14:47:13 +0200 Subject: [PATCH] fix go version in go.mod see https://github.com/golang/go/issues/62278 and https://github.com/dependabot/dependabot-core/issues/7895 for details --- .github/dependabot.yml | 5 +++++ build/liqoctl/build.sh | 6 +++--- go.mod | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 631f7afce0..ad5546fec8 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,3 +9,8 @@ updates: directory: "/" schedule: interval: "daily" + + - package-ecosystem: "docker" + directory: "/build/*" + schedule: + interval: "daily" diff --git a/build/liqoctl/build.sh b/build/liqoctl/build.sh index ed5e5ad0d8..44d4e6ef96 100755 --- a/build/liqoctl/build.sh +++ b/build/liqoctl/build.sh @@ -14,7 +14,7 @@ trap 'error "${BASH_SOURCE}" "${LINENO}"' ERR GO_VERSION="1.21" docker run -v "$PWD:/liqo" -w /liqo -e="CGO_ENABLED=${CGO_ENABLED}" --rm "golang:${GO_VERSION}" \ - go mod tidy && go build -o "./liqoctl-${GOOS}-${GOARCH}" \ - -ldflags="-s -w -X 'github.com/liqotech/liqo/pkg/liqoctl/version.liqoctlVersion=${LIQOCTLVERSION}'" \ + sh -c "go mod tidy && go build -o \"./liqoctl-${GOOS}-${GOARCH}\" \ + -ldflags=\"-s -w -X 'github.com/liqotech/liqo/pkg/liqoctl/version.liqoctlVersion=${LIQOCTLVERSION}'\" \ -buildvcs=false \ - ./cmd/liqoctl + ./cmd/liqoctl" diff --git a/go.mod b/go.mod index 5244b0c486..03cfb19649 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/liqotech/liqo -go 1.21 +go 1.21.0 require ( github.com/Azure/azure-sdk-for-go v68.0.0+incompatible