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

macOS readlink does not have -f flag #10

Closed
Tracked by #9
Coneko opened this issue Aug 18, 2023 · 3 comments
Closed
Tracked by #9

macOS readlink does not have -f flag #10

Coneko opened this issue Aug 18, 2023 · 3 comments
Labels
good first issue Good for newcomers platform: aarch64-darwin Specific to Darwin on AArch64 platform: x86_64-darwin Specific to Darwin on x86_64 type: bug Undesirable behavior

Comments

@Coneko
Copy link

Coneko commented Aug 18, 2023

Not sure if this is supported or even intended to work, but right off the bat I hit:

% ./nix --help
readlink: illegal option -- f
usage: readlink [-n] [file ...]
./nix: line 55: : No such file or directory
Could not find or decompress resource archive.
This script can be rebuilt using the nixie tool
tar: Error opening archive: Unrecognized archive format
zsh: abort      ./nix --help
The resource archive is missing or malformed.
This script can be rebuilt using the nixie tool
./nix: line 50: kill: (19685) - No such process

because bsd readlink doesn't support -f like gnu coreutils readlink does.

@Thesola10
Copy link
Collaborator

Thesola10 commented Aug 18, 2023

Must have been an oversight, I did test the script on vanilla macOS before. Which version of macOS/Darwin did you test that on?

I struggle to find an alternative readily available.

@Thesola10 Thesola10 added type: bug Undesirable behavior good first issue Good for newcomers platform: x86_64-darwin Specific to Darwin on x86_64 platform: aarch64-darwin Specific to Darwin on AArch64 labels Aug 18, 2023
@Thesola10 Thesola10 mentioned this issue Aug 18, 2023
7 tasks
@Thesola10
Copy link
Collaborator

readlink -f exists on macOS 12, what macOS version did you use?

@Thesola10 Thesola10 changed the title Running nixie on macOS without nix installed macOS readlink does not have -f flag Sep 4, 2023
@Thesola10
Copy link
Collaborator

What do you think of embedding realpath-lib into the generated Nixie script? I could have the builder prepend it to the generated script file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers platform: aarch64-darwin Specific to Darwin on AArch64 platform: x86_64-darwin Specific to Darwin on x86_64 type: bug Undesirable behavior
Projects
None yet
Development

No branches or pull requests

2 participants