bump go to 1.23.0 & fixup build reproducibility

This commit is contained in:
Pierre Dubouilh 2024-08-30 14:27:10 +02:00 committed by Pierre Dubouilh
parent 5a1f75265d
commit 746d6d55bc
6 changed files with 13 additions and 12 deletions

View file

@ -9,7 +9,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v1 uses: actions/setup-go@v1
with: with:
go-version: 1.19.1 go-version: 1.23.0
id: go id: go
- name: deps - name: deps

View file

@ -17,7 +17,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v1 uses: actions/setup-go@v1
with: with:
go-version: 1.19.1 go-version: 1.23.0
id: go id: go
- name: Set env - name: Set env

View file

@ -14,7 +14,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v1 uses: actions/setup-go@v1
with: with:
go-version: 1.19.1 go-version: 1.23.0
id: go id: go
- name: Check out code into the Go module directory - name: Check out code into the Go module directory

View file

@ -1,4 +1,4 @@
FLAGS := -ldflags "-s -w" -trimpath FLAGS := -trimpath
NOCGO := CGO_ENABLED=0 NOCGO := CGO_ENABLED=0
build:: build::
@ -59,6 +59,7 @@ watch-test::
ls gossa.go gossa_test.go ui/* | entr -rc make test ls gossa.go gossa_test.go ui/* | entr -rc make test
build-all:: build build-all:: build
go version
${NOCGO} GOOS=linux GOARCH=amd64 go build ${FLAGS} -o builds/gossa-linux-x64 ${NOCGO} GOOS=linux GOARCH=amd64 go build ${FLAGS} -o builds/gossa-linux-x64
${NOCGO} GOOS=linux GOARCH=arm go build ${FLAGS} -o builds/gossa-linux-arm ${NOCGO} GOOS=linux GOARCH=arm go build ${FLAGS} -o builds/gossa-linux-arm
${NOCGO} GOOS=linux GOARCH=arm64 go build ${FLAGS} -o builds/gossa-linux-arm64 ${NOCGO} GOOS=linux GOARCH=arm64 go build ${FLAGS} -o builds/gossa-linux-arm64

2
go.mod
View file

@ -1,3 +1,3 @@
module github.com/pldubouilh/gossa module github.com/pldubouilh/gossa
go 1.16 go 1.23.0

View file

@ -1,4 +1,4 @@
FROM golang:1.18 as builder FROM golang:1.23.0 as builder
WORKDIR /gossaSrc WORKDIR /gossaSrc
COPY . /gossaSrc COPY . /gossaSrc
RUN make RUN make