Skip to content
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

Build failing on macOS with -eq: unary operator expected #79

Open
GodTamIt opened this issue Nov 9, 2024 · 3 comments
Open

Build failing on macOS with -eq: unary operator expected #79

GodTamIt opened this issue Nov 9, 2024 · 3 comments

Comments

@GodTamIt
Copy link
Contributor

GodTamIt commented Nov 9, 2024

I'm seeing this when trying to build this crate on macOS:

--- stderr
expr: syntax error
./scripts/version: line 10: [: -eq: unary operator expected
thread 'main' panicked at /Users/godtamit/.asdf/installs/rust/1.80.1/registry/src/index.crates.io-6f17d22bba15001f/uplink-sys-0.7.0/build.rs:117:10:

It specifically refers to this line:

if [ $(expr match "${version}" '^v') -eq 1 ]; then

Am I missing something here?

@ifraixedes
Copy link
Collaborator

@GodTamIt it seems that you found the problem storj/uplink-c#29, right?

@GodTamIt
Copy link
Contributor Author

@GodTamIt it seems that you found the problem storj/uplink-c#29, right?

Yep that's right 👍

@ifraixedes
Copy link
Collaborator

This issue will remain open until a new https://github.com/storj/uplink-c release is published and we can update the uplink-sys crate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants