Skip to content

Commit 194842c

Browse files
authored
Merge pull request #816 from stgraber/main
Bump to Go 1.21
2 parents b8491c1 + 6935322 commit 194842c

File tree

5 files changed

+89
-70
lines changed

5 files changed

+89
-70
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
go:
20-
- 1.20.x
2120
- 1.21.x
21+
- 1.22.x
2222
os:
2323
- ubuntu-20.04
2424
- ubuntu-22.04

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ default:
1212
.PHONY: update-gomod
1313
update-gomod:
1414
go get -t -v -d -u ./...
15-
go mod tidy -go=1.20
15+
go mod tidy -go=1.21
1616

1717
.PHONY: check
1818
check: default
@@ -74,7 +74,7 @@ doc-lint:
7474
.PHONY: static-analysis
7575
static-analysis:
7676
ifeq ($(shell command -v golangci-lint 2> /dev/null),)
77-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2
77+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.0
7878
endif
7979
golangci-lint run --timeout 5m
8080
run-parts --exit-on-error --regex '.sh' test/lint

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ To compile `distrobuilder` from source, first install the Go programming languag
7171
sudo pacman -S go debootstrap rsync gnupg squashfs-tools git make --needed
7272
```
7373
74-
NOTE: Distrobuilder requires Go 1.20 or higher, if your distribution doesn't have a recent enough version available, [get it from upstream](https://go.dev/doc/install).
74+
NOTE: Distrobuilder requires Go 1.21 or higher, if your distribution doesn't have a recent enough version available, [get it from upstream](https://go.dev/doc/install).
7575
7676
Second, download the source code of the `distrobuilder` repository (this repository).
7777

go.mod

+24-21
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/lxc/distrobuilder
22

3-
go 1.20
3+
go 1.21
4+
5+
toolchain go1.21.5
46

57
exclude (
68
github.com/rootless-containers/proto v0.1.0
@@ -10,12 +12,12 @@ exclude (
1012
require (
1113
github.com/flosch/pongo2 v0.0.0-20200913210552-0d938eb266f3
1214
github.com/google/go-github/v56 v56.0.0
13-
github.com/lxc/incus v0.0.0-20231108042213-fae14b9e604f
15+
github.com/lxc/incus v0.5.1
1416
github.com/mudler/docker-companion v0.4.6-0.20211015133729-bd4704fad372
1517
github.com/sirupsen/logrus v1.9.3
1618
github.com/spf13/cobra v1.8.0
1719
github.com/stretchr/testify v1.8.4
18-
golang.org/x/sys v0.15.0
20+
golang.org/x/sys v0.17.0
1921
golang.org/x/text v0.14.0
2022
gopkg.in/antchfx/htmlquery.v1 v1.2.2
2123
gopkg.in/flosch/pongo2.v3 v3.0.0-20141028000813-5e81b817a0c4
@@ -30,39 +32,40 @@ require (
3032
github.com/antchfx/xpath v1.2.5 // indirect
3133
github.com/apex/log v1.9.0 // indirect
3234
github.com/containerd/cgroups v1.1.0 // indirect
33-
github.com/containerd/containerd v1.7.11 // indirect
35+
github.com/containerd/containerd v1.7.13 // indirect
3436
github.com/containerd/continuity v0.4.3 // indirect
3537
github.com/containerd/log v0.1.0 // indirect
3638
github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect
3739
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
3840
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
3941
github.com/distribution/reference v0.5.0 // indirect
4042
github.com/docker/distribution v2.8.3+incompatible // indirect
41-
github.com/docker/docker v24.0.7+incompatible // indirect
42-
github.com/docker/go-connections v0.4.0 // indirect
43+
github.com/docker/docker v25.0.3+incompatible // indirect
44+
github.com/docker/go-connections v0.5.0 // indirect
4345
github.com/docker/go-units v0.5.0 // indirect
4446
github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 // indirect
45-
github.com/fsouza/go-dockerclient v1.10.0 // indirect
47+
github.com/fsouza/go-dockerclient v1.10.2 // indirect
4648
github.com/gogo/protobuf v1.3.2 // indirect
4749
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
4850
github.com/golang/protobuf v1.5.3 // indirect
4951
github.com/google/go-querystring v1.1.0 // indirect
50-
github.com/google/uuid v1.4.0 // indirect
52+
github.com/google/uuid v1.6.0 // indirect
5153
github.com/gorilla/schema v1.2.1 // indirect
5254
github.com/gorilla/securecookie v1.1.2 // indirect
5355
github.com/gorilla/websocket v1.5.1 // indirect
5456
github.com/heroku/docker-registry-client v0.0.0-20211012143308-9463674c8930 // indirect
5557
github.com/inconshreveable/mousetrap v1.1.0 // indirect
56-
github.com/klauspost/compress v1.17.2 // indirect
58+
github.com/klauspost/compress v1.17.6 // indirect
5759
github.com/klauspost/pgzip v1.2.6 // indirect
5860
github.com/kr/fs v0.1.0 // indirect
5961
github.com/moby/patternmatcher v0.6.0 // indirect
6062
github.com/moby/sys/sequential v0.5.0 // indirect
63+
github.com/moby/sys/user v0.1.0 // indirect
6164
github.com/moby/term v0.5.0 // indirect
6265
github.com/morikuni/aec v1.0.0 // indirect
6366
github.com/muhlemmer/gu v0.3.1 // indirect
6467
github.com/opencontainers/go-digest v1.0.0 // indirect
65-
github.com/opencontainers/image-spec v1.1.0-rc5 // indirect
68+
github.com/opencontainers/image-spec v1.1.0-rc6 // indirect
6669
github.com/opencontainers/runc v1.1.12 // indirect
6770
github.com/opencontainers/runtime-spec v1.1.0 // indirect
6871
github.com/opencontainers/umoci v0.4.8-0.20211009121349-9c76304c034d // indirect
@@ -75,19 +78,19 @@ require (
7578
github.com/spf13/pflag v1.0.5 // indirect
7679
github.com/urfave/cli v1.22.14 // indirect
7780
github.com/vbatts/go-mtree v0.5.3 // indirect
78-
github.com/zitadel/oidc/v2 v2.11.0 // indirect
81+
github.com/zitadel/oidc/v2 v2.12.0 // indirect
7982
go.opencensus.io v0.24.0 // indirect
80-
golang.org/x/crypto v0.17.0 // indirect
81-
golang.org/x/mod v0.14.0 // indirect
82-
golang.org/x/net v0.18.0 // indirect
83-
golang.org/x/oauth2 v0.14.0 // indirect
84-
golang.org/x/sync v0.5.0 // indirect
85-
golang.org/x/term v0.15.0 // indirect
86-
golang.org/x/tools v0.15.0 // indirect
83+
golang.org/x/crypto v0.19.0 // indirect
84+
golang.org/x/mod v0.15.0 // indirect
85+
golang.org/x/net v0.21.0 // indirect
86+
golang.org/x/oauth2 v0.17.0 // indirect
87+
golang.org/x/sync v0.6.0 // indirect
88+
golang.org/x/term v0.17.0 // indirect
89+
golang.org/x/tools v0.17.0 // indirect
8790
google.golang.org/appengine v1.6.8 // indirect
88-
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 // indirect
89-
google.golang.org/grpc v1.59.0 // indirect
90-
google.golang.org/protobuf v1.31.0 // indirect
91+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240205150955-31a09d347014 // indirect
92+
google.golang.org/grpc v1.61.0 // indirect
93+
google.golang.org/protobuf v1.32.0 // indirect
9194
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
9295
gopkg.in/yaml.v3 v3.0.1 // indirect
9396
gotest.tools/v3 v3.5.0 // indirect

0 commit comments

Comments
 (0)