google / google/protobuf-gradle-plugin

Does not work with NixOS

Open
#426 12 comments 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
Groovy
Stars
1.8k
Forks
288
PR merge metrics
No merged PRs in 30d

Description

Since NixOS handles packages quite differently and does not depend on standard linux paths like /lib, /bin, etc - the downloaded binary does not execute. Exception:
```
Execution failed for task ':rpc:generateProto'.
> java.io.IOException: Cannot run program "/home/gytis/.local/share/gradle/caches/modules-2/files-2.1/com.google.protobuf/protoc/3.6.1/f8584d1e86d1adb61d9c559e4b49cedbc97c4d78/protoc-3.6.1-linux-x86_64.exe": error=2, No such file or directory
```

Temp workaround:
Install `protobuf` package manually and define this in your config:
```
protoc {
path = 'protoc'
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.