Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protobuf compile with fixed versions #224

Merged

Conversation

marcus-sva
Copy link
Contributor

@marcus-sva marcus-sva commented Feb 19, 2025

What this PR does / why we need it:

Curretly HobbyFarm used latest versions for protobuf code gernation. This includes:

  • generation of code happend in golang:latest container
  • protobuf-compiler version 23.12 but changes in case golang:latest is updated
  • google.golang.org/protobuf/cmd/protoc-gen-go in version latest
  • google.golang.org/grpc/cmd/protoc-gen-go-grpc in version 1.3.0

Now the generate-protos.sh script used defined versions to avoid breaking builds during unwanted version updates

BASE_IMAGE="golang:1.23.6-alpine3.21"
PROTOC_VERSION="29.3"
PROTOC_GEN_GO_VERSION="v1.36.5"
PROTOC_GEN_GO_GRPC_VERSION="v1.5.1"

This PR depends on #215 which should be merged before.

Which issue(s) this PR fixes:

HobbyFarm uses latest versions for protbuf code generation

@jggoebel jggoebel merged commit cc04768 into hobbyfarm:master Feb 19, 2025
23 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