From 3eff6aadb510c3b5271a672f892e54281ae9baeb Mon Sep 17 00:00:00 2001 From: Ben Echols Date: Fri, 29 Sep 2023 08:43:19 -0600 Subject: [PATCH] updated to use go 1.21 --- .github/workflows/deploy.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/run_tests.yml | 2 +- .github/workflows/update_items.yml | 2 +- Dockerfile | 2 +- README.md | 6 +++--- go.mod | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6c7c974bb8..046c13aca4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,7 +10,7 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.18.x + go-version: 1.21.x - name: Install Protoc uses: arduino/setup-protoc@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee2f07a37b..7e4f5c9d6f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.18.x + go-version: 1.21.x - name: Install Protoc uses: arduino/setup-protoc@v1 diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index baf45e9e30..b1fc4d4bff 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -10,7 +10,7 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.18.x + go-version: 1.21.x - name: Install Protoc uses: arduino/setup-protoc@v1 diff --git a/.github/workflows/update_items.yml b/.github/workflows/update_items.yml index c01eb8ddcb..ab31b7bb20 100644 --- a/.github/workflows/update_items.yml +++ b/.github/workflows/update_items.yml @@ -13,7 +13,7 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.18.x + go-version: 1.21.x - name: Install Protoc uses: arduino/setup-protoc@v1 diff --git a/Dockerfile b/Dockerfile index 830b5b8fda..92584bd2b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM golang:1.18 +FROM golang:1.21 WORKDIR /wotlk COPY . . diff --git a/README.md b/README.md index d81dfd3856..8a63d13624 100644 --- a/README.md +++ b/README.md @@ -20,16 +20,16 @@ Then unzip the downloaded file, then open the unzipped file to open the sim in y Alternatively, you can choose from a specific relase on the [Releases](https://github.com/wowsims/wotlk/releases) page and click the suitable link under "Assets" # Local Dev Installation -This project has dependencies on Go >=1.18, protobuf-compiler and the corresponding Go plugins, and node >= 14.0. +This project has dependencies on Go >=1.21, protobuf-compiler and the corresponding Go plugins, and node >= 14.0. ## Ubuntu Do not use apt to install any dependencies, the versions they install are all too old. Script below will curl latest versions and install them. ```sh # Standard Go installation script -curl -O https://dl.google.com/go/go1.18.3.linux-amd64.tar.gz +curl -O https://dl.google.com/go/go1.21.1.linux-amd64.tar.gz sudo rm -rf /usr/local/go -sudo tar -C /usr/local -xzf go1.18.3.linux-amd64.tar.gz +sudo tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz echo 'export PATH=$PATH:/usr/local/go/bin' >> $HOME/.bashrc echo 'export GOPATH=$HOME/go' >> $HOME/.bashrc echo 'export PATH=$PATH:$GOPATH/bin' >> $HOME/.bashrc diff --git a/go.mod b/go.mod index 44204c6e5f..14338b8225 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/wowsims/wotlk -go 1.18 +go 1.21 require ( github.com/golang/protobuf v1.5.3