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

initial install on darwin ends with errors relating to unknown hostname option #375

Closed
montchr opened this issue Sep 21, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@montchr
Copy link
Collaborator

montchr commented Sep 21, 2021

Expected Behavior

Running the initial install steps in the Quick Start guide on macOS 11.6 should not result in a series of errors.

Current Behavior

The install process looks like it's successful for the most part, but it ends with a series of errors:

...
created 129 symlinks in user environment
building '/nix/store/izybzyn94b2plalg380jzqq4nnqllsyl-nixos-entrypoint.drv'...
fatal: not a git repository (or any of the parent directories): .git
hostname: illegal option -- -
usage: hostname [-fs] [name-of-host]
/nix/store/83cv4fcjj56sch8z0njlrrf8wiv8kim2-devshell-dir/bin/bud: line 8:  -1: substring expression < 0
11.09s user 30.55s system 5% cpu 13:06.38s total

Steps to Reproduce

I ran the command from the quick start guide:

nix-shell https://github.com/divnix/devos/archive/master.tar.gz -A shell \
  --run "bud get master"

Your Environment

  • macOS 11.6 on MacBookPro16,2 (Intel)
  • nix-darwin (latest commit)

Probably relevant, I ran these commands in my shell. I'm guessing Darwin's hostname utility behaves differently than it would on NixOS or another Linux system.

❯ which hostname
/bin/hostname
❯ hostname --help
hostname: illegal option -- -
usage: hostname [-fs] [name-of-host]
@montchr
Copy link
Collaborator Author

montchr commented Sep 21, 2021

Closed in favor of divnix/bud#23

@montchr montchr closed this as completed Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant