-
Notifications
You must be signed in to change notification settings - Fork 6
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
When installed on OSX with Homebrew on Apple Silicon, the sy command fails to load libassuan.0.dylib #22
Comments
libassuan.0.dylib
Thanks for this fantastic summary and for digging into understanding the cause. I second the assessment as to why the pre-built binaries don't work anymore. This tool hasn't seen any maintenance in years because I don't use it myself anymore, but would love it to have a new maintainer. Would you be interested? If not, a PR with a fix is definitely welcome and I will do my best to process them to get a new binary release. (It's probably easier to do the respective edits to CI as collaborator as well, so I am offering the position even if it's just temporary) |
I am not yet well versed in Rust, but I am happy to contribute at least to fix this issue. I think I can produce the missing binary, and hopefully fix the script here to download the correct one :) I still use |
Would it make sense to setup a cross-compilation pipeline on CI like done here to build executables for various architectures? If so, I can give it a try. |
Absolutely, that sounds like the proper way of doing it, even though a quick fix is also fine with me as long as it helps you. In any case, you can take it where you need it to be! I have invited you as a maintainer for all relevant repos, which is merely a starting point for administering the whole 'share secrets safely' organisation if that helps to give |
Steps to reproduce:
Install Sheesy with on OSX with a recent version of Homebrew:
Then run any command, for example
sy --version
.Expected behaviour
The command runs without issues.
Actual behavior
The command fails with:
Note that
libassuan
is correctly installed on the system (with Homebrew).The version you were using
The command
sy --version
crashes, but the installedsy
version is4.0.10
.I am on
MacOS Ventura 13.1
on Apple Silicon M1 Max.The Homebrew version is:
Possible explanation
Homebrew on Apple Silicon uses
/opt/homebrew
as prefix instead of/usr/local
(as indicated by the output ofbrew --prefix
and as discussed here), thereforelibassuan
is located in/opt/homebrew/lib/libassuan.0.dylib
. Currently,sy
tries to load it from/usr/local
and/usr/lib
.Explicitly setting
DYLD_LIBRARY_PATH=/opt/homebrew/lib sy --version
finds the library, but fails with:This seems to indicate that the wrong architecture is used when downloading the pre-built
sy
binary, I suspect because-x86_64
is hardcoded here, and the releases do not include anarm64
version.Cloning the repo and building it with Cargo produces a working
sy
binary, so it looks like it is really just an issue with missing pre-built binary for Apple Silicon.The text was updated successfully, but these errors were encountered: