Skip to content

Switch to go 1.18#214

Merged
jbkempf merged 3 commits into
videolabs:masterfrom
elboulangero:switch-to-go-1.18
May 8, 2026
Merged

Switch to go 1.18#214
jbkempf merged 3 commits into
videolabs:masterfrom
elboulangero:switch-to-go-1.18

Conversation

@elboulangero
Copy link
Copy Markdown
Contributor

Raise the minimum baseline for Go. This is a pre-requisite to move forward with #200

@elboulangero elboulangero mentioned this pull request Apr 2, 2026
@elboulangero
Copy link
Copy Markdown
Contributor Author

I'm waiting on this one before opening other (small) MRs for the changes I proposed in #213

@jbkempf
Copy link
Copy Markdown
Collaborator

jbkempf commented May 7, 2026

It says conflict, I fear.

Go 1.18 is now the the lowest supported version. This is the version
that shipped in Ubuntu 22.04 LTS.

Update CI to reflect that: test with Go 1.18, Go 1.24 (shipped in Debian
13 "trixie") and Go 'stable' (which is 1.26 at the moment).

Update README and drop mentions of Go < 1.11.
I've just run 'go mod tidy' from the golang:1.18 container, here's the
result.
Referring to 955a8b2 (from Jan 2019):

> The go.mod defines the dependencies and their versions while the vendor
> folder contains the vendored deps for pre-1.11 builds.

Indeed, when building with Go 1.18, the vendor tree is not used, instead
the dependencies are downloaded from the Net, as one can see by simply
typing 'make' and watching the output:

```
$ make
[...]
GO111MODULE=on go build -ldflags "-X github.com/etix/mirrorbits/core.VERSION=v0.6.1-10-g9b08c06 -X github.com/etix/mirrorbits/core.BUILD=9b08c06-switch-to-go-1.18 -X github.com/etix/mirrorbits/config.TEMPLATES_PATH=templates/" -o bin/mirrorbits .
go: downloading github.com/op/go-logging v0.0.0-20160315200505-970db520ece7
go: downloading github.com/pkg/errors v0.8.1
go: downloading gopkg.in/yaml.v3 v3.0.1
[...]
```

Given that we don't support Go < 1.18, it's time to remove the vendor
tree, it seems.
@elboulangero
Copy link
Copy Markdown
Contributor Author

Conflict is fixed. I also edited the MR a bit, I realized that I forgot to set go 1.18 in the go.mod, so I fixed that.

@jbkempf jbkempf merged commit b3bce74 into videolabs:master May 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants