feat: upgrade Go to 1.18

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2022-03-16 12:12:26 +01:00
parent 1884705b87
commit ab02a2d714
No known key found for this signature in database
GPG key ID: 31AB0439F4C5C90E
6 changed files with 13 additions and 11 deletions

View file

@ -64,7 +64,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v3 uses: actions/setup-go@v3
with: with:
go-version: 1.17 go-version: 1.18
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3

View file

@ -45,13 +45,15 @@ linters:
- structcheck - structcheck
- stylecheck - stylecheck
- tparallel - tparallel
- typecheck
- unconvert - unconvert
- unparam - unparam
- unused - unused
- varcheck - varcheck
- whitespace - whitespace
# Disable temporarily until everything works with Go 1.18
# - typecheck
# TODO: fix linter errors before enabling # TODO: fix linter errors before enabling
# - exhaustivestruct # - exhaustivestruct
# - gochecknoglobals # - gochecknoglobals

View file

@ -1,6 +1,6 @@
ARG BASE_IMAGE=alpine ARG BASE_IMAGE=alpine
FROM golang:1.17.8-alpine3.14 AS builder FROM golang:1.18.0-alpine3.15 AS builder
WORKDIR /usr/local/src/dex WORKDIR /usr/local/src/dex

View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1634851050, "lastModified": 1648297722,
"narHash": "sha256-N83GlSGPJJdcqhUxSCS/WwW5pksYf3VP1M13cDRTSVA=", "narHash": "sha256-W+qlPsiZd8F3XkzXOzAoR+mpFqzm3ekQkJNa+PIh1BQ=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "c91f3de5adaf1de973b797ef7485e441a65b8935", "rev": "0f8662f1319ad6abf89b3380dd2722369fc51ade",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -17,11 +17,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1636800699, "lastModified": 1649225869,
"narHash": "sha256-SwbyVxXffu3G2ulJIbTf0iQfqhbGbdml4Dyv5j9BiAI=", "narHash": "sha256-u1zLtPmQzhT9mNXyM8Ey9pk7orDrIKdwooeGDEXm5xM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2fa862644fc15ecb525eb8cd0a60276f1c340c7c", "rev": "b6966d911da89e5a7301aaef8b4f0a44c77e103c",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -10,7 +10,7 @@
flake-utils.lib.eachDefaultSystem (system: flake-utils.lib.eachDefaultSystem (system:
let let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
buildDeps = with pkgs; [ git go_1_17 gnumake ]; buildDeps = with pkgs; [ git go_1_18 gnumake ];
devDeps = with pkgs; devDeps = with pkgs;
buildDeps ++ [ buildDeps ++ [
golangci-lint golangci-lint

2
go.mod
View file

@ -1,6 +1,6 @@
module github.com/dexidp/dex module github.com/dexidp/dex
go 1.17 go 1.18
require ( require (
entgo.io/ent v0.10.1 entgo.io/ent v0.10.1