-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Plugin not always triggers scala classes rebuild. #307
Comments
I've dug a little bit deeper and found that this problem is not related to sbt-protoc plugin. TL;DR: If your scala classes are not updating after changing the dependency version try to add |
I'm not sure that solving this issue on the publisher side is a good idea. @thesamet WDYT? |
Since we have a new questions about this fix, I reopen this issue. |
Agree that relying on the publisher isn't ideal since it's possible we have no control over the publisher's build. Maybe it's possible to somehow cache the |
It looks like there's a reasonable workaround and there wasn't any activity on this issue for quite a while, so closing. |
Steps to reproduce.
Successful case:
Failed case
git checkout 2.0.0-branch sbt compile # also works. (unexpected result)
Expected result:
Compilation in
2.0.0-branch
should fails because proto file has one less field and scala code tries to call constructor with two parameters.Known workaround:
Diff between
1.0.0-branch
and2.0.0-branch
Summary: As I can see, sbt updates jar with proto files, sbt-protoc plugin unpacks this proto file in the right place, but plugin do not regenerate scala classes.
The text was updated successfully, but these errors were encountered: