Bump go toolchain version to 1.21 to support slices (not 1.18 as incorrectly tried in the previous commit)

This commit is contained in:
Alessio 2024-12-23 19:28:17 -08:00
parent c428c95a4c
commit 574be89062
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ from ubuntu:jammy
run apt update && apt install -y sudo curl wget build-essential sqlite3 jq git musl-dev musl-tools
# Install go and golangci-lint
run wget https://go.dev/dl/go1.20.4.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.20.4.linux-amd64.tar.gz
run wget https://go.dev/dl/go1.21.4.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.21.4.linux-amd64.tar.gz
env PATH="$PATH:/usr/local/go/bin"
run curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/go/bin v1.59.1

2
go.mod
View File

@ -1,6 +1,6 @@
module gitlab.com/offline-twitter/twitter_offline_engine
go 1.18
go 1.21
require (
github.com/Masterminds/sprig/v3 v3.2.3