-
Notifications
You must be signed in to change notification settings - Fork 267
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
protoc plugin install error #2287
Comments
I am unable to reproduce this neither on macOS nor on the Linux (aarch64) Dev Container but it seems to occur if i use a minimal Ubuntu Docker image. I assume this is caused by a missing system library of some sort. |
there was a similar issue around something involving page size |
I assume you're referring to #2196? |
The git2 crate states that it has a dependency on Installing apt-get install libgit2-1.7 @jdx The crate mentions that libgit2 can be vendored so maybe we should enable the feature. git2 = {version = "0.18.3", features = ["vendored-libgit2"] } |
I'm on board but maybe just for precompiled mise like we do for OpenSSL. |
As mentioned in git2 crate some systems still require the system version of libgit2 even with vendored libgit2 . Setting the environment variable |
I'm not sure I understand what you are talking about here, but on Ubuntu 24.04 docker run -t ubuntu:24.04 bash -c 'apt-get update && apt-get -y install curl libgit2-1.7 && (curl https://mise.jdx.dev/install.sh | sh) && LIBGIT2_NO_VENDOR=1 /root/.local/bin/mise use --global --debug -vv [email protected]' |
I suggest |
Additionally, I don't really want to install a 668MB toolchain (estimate from just adding Will go back to an earlier version for now. |
Don't understand the workarounds, so will pin on a version which works without hassle. jdx/mise#2196 jdx/mise#2287
@chadlwilson You might be right, when i was trying to get to the core of this issue the mentioned environment variable helped. But it seems that this issue is more random than anything else. Subsequent runs sometimes succeed and sometimes fail randomly regardless of |
maybe we'd have better luck with gitoxide switching to git2 made for massive performance boosts in the places we use it so I really would like to keep it over shelling out to |
There is a newer version of git2 available (see #2300) which bumps to |
I also had a quick look at |
@chadlwilson If you have a way to verify, i would be interested to know if the issue still occurs with version 2024.7.1 (now that #2357 is merged). I personally ran a couple manual tests on a Debian Docker container and did not encounter it anymore. |
Thanks @roele - this seems to have done the trick! https://github.com/gocd-contrib/gocd-oss-cookbooks/actions/runs/9844334610/job/27192502084 (this is building an arm64 CentOS Stream 9 image with mise installed on a native arm64 Linux GHA runner |
I also cannot replicate anything via arm64 containers on my Apple Silicon machine with |
Describe the bug
Error when installing the protoc community plugin.
To Reproduce
Expected behavior
Plugin installs fine, like it does with asdf on the same machine.
mise doctor
outputAdditional context
The operating system is Ubuntu 22.04.2 LTS, running in Parallels VM with x86_64 emulation on a mac with Apple Silicon chip.
asdf plugin add protoc
andasdf install
did not yield errors on the same machine.Here is the relevant entry in
.tool-versions
:The text was updated successfully, but these errors were encountered: