-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Fix compiled logproto protobuf #1183
Conversation
I like the idea of always force checking on protos generation and I'm not good enough with Makefiles to suggest anything better. Generally, I like this change. I am, however, concerned about changing |
9facd73
to
18aa34b
Compare
@joe-elliott You mean pin the version of the following packages in
|
Yes, that feels safer to me, or just merge this change after 0.4.0 is cut? @slim-bean Thoughts either way? Recent changes to the build image have caused inconsistency in our build pipeline outlined by marco above. Options are:
|
I like the idea of pinning the versions of golang and gogo protobuf and making a new build image 👍 |
18aa34b
to
3e006cc
Compare
@joe-elliott @slim-bean May you check the changes, please? I've already advanced the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one question/thought if we should also pin the yacc version
3e006cc
to
07c9916
Compare
@slim-bean I've pushed the |
What this PR does / why we need it:
The PR #1133 has upgraded
golangci-lint
and thus theloki-build-image
has been rebuilded and a new version published (0.7.3
).The rebuild of the image has installed the latest versions of the deps specified in the
loki-build-image/Dockerfile
, includingprotoc-gen-gogoslick
which I think is the cause of a change topkg/logproto/logproto.pb.go
.We didn't notice it, because in the
Makefile
the%.pb.go
target is not a phony one, so thelogproto.proto
is recompiled only once its timestamp change. However, it should be recompiled also whenever the tooling change and it may be quite difficult to remember it, so I'm proposing to enforce it when runningmake check-generated-files
.Unfortunately, the only idea I've got to enforce
protoc
whenever we runmake check-generated-files
is a bit hacky. I'm open to better ideas.Special notes for your reviewer:
Checklist