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

OpenBSD tar is not detected #33

Closed
blackgnezdo opened this issue May 10, 2021 · 2 comments
Closed

OpenBSD tar is not detected #33

blackgnezdo opened this issue May 10, 2021 · 2 comments

Comments

@blackgnezdo
Copy link

When running stack I get this error:

2021-05-09 21:20:54.625664: [debug] Run process within /tmp/with-repo54077/cloned: /bin/tar --version
2021-05-09 21:20:54.975595: [error] Received ExitFailure 1 when running
Raw command: /bin/tar --version
Run from: /tmp/with-repo54077/cloned
Standard error:

tar: unknown option -- -
usage: tar {crtux}[014578befHhjLmNOoPpqsvwXZz]
           [blocking-factor | archive | replstr] [-C directory] [-I file]
           [file ...]
       tar {-crtux} [-014578eHhjLmNOoPpqvwXZz] [-b blocking-factor]
           [-C directory] [-f archive] [-I file] [-s replstr] [file ...]

I suspect this is due to pantry trying to work out the tar version. I doubt --version is in any relevant standard that OpenBSD follows, so tar exits with error code 1 in such cases.

@snoyberg
Copy link
Collaborator

I'm not familiar with OpenBSD tar, but I'm guessing the BSD variant here would be the sensible default. Can you confirm?

@psibi any thoughts on modifying this code to always choose BSD in the case of failing to parse the --version string, for any reason?

@psibi
Copy link
Member

psibi commented May 10, 2021

any thoughts on modifying this code to always choose BSD in the case of failing to parse the --version string, for any reason?

Yeah, that sounds good to me.

snoyberg added a commit that referenced this issue May 11, 2021
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

3 participants