Skip to content

Commit b1ddc5e

Browse files
authored
chore(go): update go to version 1.24.0 (#563)
1 parent 14396f9 commit b1ddc5e

File tree

7 files changed

+18
-10
lines changed

7 files changed

+18
-10
lines changed

.devcontainer/Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
FROM node:20-alpine3.21
2-
RUN apk update && apk add git openssh go go-doc
2+
RUN apk update && apk add git openssh
3+
#go go-doc
4+
5+
ENV GO_VERSION=1.24.0
6+
7+
RUN apk add --no-cache curl git openssh \
8+
&& curl -fsSL https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz \
9+
| tar -C /usr/local -xz \
10+
&& ln -s /usr/local/go/bin/go /usr/local/bin/go
11+
12+
ENV PATH="/usr/local/go/bin:${PATH}"

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
node-version: 20
1414
- uses: actions/setup-go@v6
1515
with:
16-
go-version: '1.23.9'
16+
go-version: '1.24.0'
1717
- run: npm ci
1818
- run: npm run build
1919
env:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
node-version: 20
1111
- uses: actions/setup-go@v6
1212
with:
13-
go-version: '1.23.9'
13+
go-version: '1.24.0'
1414
- run: npm ci
1515
- run: npm run build
1616
- run: npm run lint

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
module github.com/italia/publiccode-editor/wasm
22

3-
go 1.23.9
4-
5-
toolchain go1.23.9
3+
go 1.24.0

go.work

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
go 1.23.9
1+
go 1.24.0
22

3-
toolchain go1.23.9
3+
toolchain go1.24.0
44

55
use ./src/wasm

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"prebuild": "npm run build:wasm && npm run build:licenses",
1414
"build:providers-oembed": "tsx scripts/getProvidersOembed.ts src/generated/providers-oembed.json",
1515
"build:licenses": "mkdir -p src/generated && tsx scripts/genLicenseList.ts src/generated/licenses.json",
16-
"build:wasm": "cp \"$(go env GOROOT)/misc/wasm/wasm_exec.js\" public && GOOS=js GOARCH=wasm go build -o public/main.wasm src/wasm/main.go",
16+
"build:wasm": "cp \"$(go env GOROOT)/lib/wasm/wasm_exec.js\" public && GOOS=js GOARCH=wasm go build -o public/main.wasm src/wasm/main.go",
1717
"serve": "rm -rf dist; npm run build && http-server dist",
1818
"format": "prettier --write 'src/**/*.{ts,tsx,scss,css,json}' ",
1919
"test": "jest --passWithNoTests",

src/wasm/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/italia/publiccode-editor/wasm
22

3-
go 1.23.9
3+
go 1.24.0
44

55
require github.com/italia/publiccode-parser-go/v5 v5.2.1
66

0 commit comments

Comments
 (0)