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

Improve error message when xz is not installed in the system #437

Closed
JLarky opened this issue Mar 18, 2024 · 4 comments
Closed

Improve error message when xz is not installed in the system #437

JLarky opened this issue Mar 18, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@JLarky
Copy link

JLarky commented Mar 18, 2024

What version?

No response

Which command?

curl -fsSL https://moonrepo.dev/install/proto.sh | bash

What happened?

proto error message:

$ curl -fsSL https://moonrepo.dev/install/proto.sh | bash

######################################################################## 100.0%
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

compare that to error message Bun shows when you are missing unzip:

$ curl -fsSL https://bun.sh/install | bash
error: unzip is required to install bun (see: https://bun.sh/docs/installation#macos-and-linux)

Trace logs?

No response

Operating system?

Linux

Architecture?

x64

@JLarky JLarky added the bug Something isn't working label Mar 18, 2024
@milesj
Copy link
Contributor

milesj commented Mar 18, 2024

We use tar xf to unpack. I'll see if there's a way to detect what tar requires.

@milesj
Copy link
Contributor

milesj commented Mar 18, 2024

I think this will do it? moonrepo/moon#1387

@milesj
Copy link
Contributor

milesj commented Mar 20, 2024

Should error now.

@milesj milesj closed this as completed Mar 20, 2024
@JLarky
Copy link
Author

JLarky commented Mar 30, 2024

Thank you, looks great now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants