Bump to go 1.18 semantics

This commit is contained in:
Joshua Casey 2023-01-20 06:44:36 -06:00
parent d0784eaed2
commit 0d4a4fd2bf
2 changed files with 2 additions and 2 deletions

2
go.mod
View File

@ -1,6 +1,6 @@
module go.pinniped.dev module go.pinniped.dev
go 1.17 go 1.18
require ( require (
github.com/MakeNowJust/heredoc/v2 v2.0.1 github.com/MakeNowJust/heredoc/v2 v2.0.1

View File

@ -9,7 +9,7 @@ ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
function tidy_cmd() { function tidy_cmd() {
local version="$(cat "${ROOT}/go.mod" | grep '^go ' | cut -f 2 -d ' ')" 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() { function lint_cmd() {