-
-
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
Having trouble using cached protoc binary with nix-shell #326
Comments
Hi @martyall , sorry for the late response. I have missed the notification email. I am not familiar with flakes, but I do use Nix myself. If you use a recent sbt-protoc (>1.0.0) things should work by default. There's a special code path in that looks for |
@martyall the error message is the generic misleading error because the binary isn't built using nix. You can manually override the setting in the @thesamet The new |
Would it be possible to send over the flake file so I can try? However, sbt-protoc downloads protoc from maven through coursier. You can override this behavior by settings |
I'm actually using the floating nix package, so something like Yes I'm doing the override manually at the moment. I'll try the updated plugin version and see whether it works out the box. |
I'm trying to compile a scala project that generates code via sbt-protoc but I am getting the following error message:
My thought is that because I am using nix flakes, nix has no clue where
$HOME/.cache
is located. What is the advised workaround for this problem?My flake file looks like:
The text was updated successfully, but these errors were encountered: