1
0
mirror of synced 2025-04-18 12:24:02 +03:00

chore: pin build to Go 1.18

Minor releases of Go can change `go fmt` which can break linting.
Inconsistent formatting are just going to create annoying problems, so
the Go compiler will be pinned to the latest patch of a specific minor rev.

This should pick up security fixes without disrupting development.

We can coordinate a move to a newer Go release.
This commit is contained in:
Casey Marshall 2022-08-31 10:34:41 -05:00
parent eb2a11b31e
commit d2d2ac36cc
No known key found for this signature in database
GPG Key ID: 6DEC2758ACD5A973
3 changed files with 4 additions and 2 deletions

View File

@ -19,7 +19,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15
go-version: 1.18
- name: Check out code into the Go module directory
uses: actions/checkout@v2

View File

@ -1,4 +1,4 @@
FROM golang:buster as builder
FROM golang:1.18-buster as builder
LABEL io.hockeypuck.temp=true
RUN adduser builder --system --disabled-login
ENV DEBIAN_FRONTEND=noninteractive

2
shell.nix Normal file
View File

@ -0,0 +1,2 @@
with import <nixos-unstable> {};
runCommand "dummy" { buildInputs = [ go_1_18 gnumake gcc ]; } ""