From 0d4a4fd2bfcdcd9bbd7b04c0448f99feed49109f Mon Sep 17 00:00:00 2001 From: Joshua Casey Date: Fri, 20 Jan 2023 06:44:36 -0600 Subject: [PATCH] Bump to go 1.18 semantics --- go.mod | 2 +- hack/module.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 58df8c7e..4638cc1f 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module go.pinniped.dev -go 1.17 +go 1.18 require ( github.com/MakeNowJust/heredoc/v2 v2.0.1 diff --git a/hack/module.sh b/hack/module.sh index 62b92c2f..6fce51e2 100755 --- a/hack/module.sh +++ b/hack/module.sh @@ -9,7 +9,7 @@ ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" function tidy_cmd() { local version="$(cat "${ROOT}/go.mod" | grep '^go ' | cut -f 2 -d ' ')" - echo "go mod tidy -v -go=${version} -compat=1.17" + echo "go mod tidy -v -go=${version} -compat=${version}" } function lint_cmd() {