Skip to content

Update CI build to Go 1.17; drop BUILD_IN_CONTAINER#258

Merged
stefanprodan merged 4 commits intomasterfrom
update-build
Sep 12, 2022
Merged

Update CI build to Go 1.17; drop BUILD_IN_CONTAINER#258
stefanprodan merged 4 commits intomasterfrom
update-build

Conversation

@bboreham
Copy link
Collaborator

@bboreham bboreham commented Sep 9, 2022

There is no weaveworks/build-golang image newer than Go 1.14, and we don't really need one.
For CI, switch to using CircleCI's image, and for local builds assume the user has Go installed.

Also switch to golangci-lint, although I suppressed any pre-existing issues. Can fix them in a different PR.

The one thing which is tricky to set up locally is protobuf generation, which is not used in CI.
The fact that the three .pb.go files in this repo were generated using two different proto commands suggests it was never done consistently.

To avoid leaving protos broken, I have used a 3rd-party image namely/protoc:1.22_1, which generates identical
output for two of the protos in this repo.

The third one, httpgrpc, I have not managed to match exactly, but the result is very close.
I have not updated the .pb.go files however. Leave that till when someone needs an update.

Also dropped a lot of boilerplate from the makefile which was not needed.

There is no weaveworks/build image newer than Go 1.14, and we don't
really need one. For CI, switch to using CircleCI's image, and for
local builds assume the user has Go installed.

This commit leaves protobuf generation somewhat broken, to be fixed
in the next commit.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
Use a 3rd-party image `namely/protoc:1.22_1`, which generates identical
output for two of the protos in this repo.

The third one, httpgrpc, I have not managed to match exactly, but the
result is very close.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
Copy link
Contributor

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @bboreham 🏅

@stefanprodan stefanprodan merged commit 21e21be into master Sep 12, 2022
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.

3 participants