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

Fix compiled logproto protobuf #1181

Closed
wants to merge 1 commit into from

Conversation

pracucci
Copy link
Contributor

What this PR does / why we need it:

The PR #1133 has upgraded golangci-lint and thus the loki-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, including protoc-gen-gogoslick which I think is the cause of a change to pkg/logproto/logproto.pb.go.

We didn't notice it, because in the Makefile the %.pb.go target is not a phony one, so the logproto.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 add it as a phony target given protoc is relatively quick. I'm open to any better suggestion, cause I haven't found a better way to enforce it.

Special notes for your reviewer:

Checklist

  • Documentation added
  • Tests updated

@pracucci
Copy link
Contributor Author

Closing to rework it.

@pracucci pracucci closed this Oct 19, 2019
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.

1 participant