-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
hostname ending in .local does not work #149
Comments
I'll comment here since the issue on the fork was closed and yes in theory it'll effect base nh. We can see here that the hostname is an optional argument https://github.com/viperML/nh/blob/master/src/interface.rs#L102 now over in the issue on the fork you show that you do not specify a hostname manually and therefore the hostname crate should be used. You also show that when running hostname in your shell you get your expected computer hostname with the .local domain. Unfortunately I'm not sure why that is happening. On my own machines I do see in settings > general > sharing that the hostname does end in .local, but I've never experienced it showing up in the substitution to the nix build command. I have two hostname binaries on my machies one from uutils coreutils and the other from apple both do not have local at the end and I'm running Sonoma 14.6.1. The double double quotes you show in your other issue seems to be a non issue, I'm not sure honestly but it shows on my machine with no issue, and I'm not sure why removing your computer name from the double quotes fixed things as that is a core nix thing and not a nh thing. So essentially sorry I didn't get the change to comment on the fork issue before you came here but I still don't know why you have these issues. |
Thanks @ToyVo ! Maybe this is all something weird and specific to my machine, but I figure just in case it's not I should let the people smarter than me know about it and decide what's the right thing to do. Plus its hard for me to resist a good mystery. :) For good measure I checked:
|
Can you run with --verbose and paste the output? |
Here's what running with --verbose shows:
|
Ah, I see this is caused by #140 I will push a fix this week. Ideally I would be doing some sanity checks on what is passed to nix build, but I don't. |
Over on nh_darwin, this has been fixed by taking more inspiration from the darwin-rebuild script to account for the .local part
|
I would be happy to know what the problem is |
There are multiple ways to define what a hostname is, a good example of that being |
A hostname ending in .local does not work, see ToyVo#12 (comment)
Unfortunately macos doesn't let me remove the
.local
part of the hostname. I filed the ticket withnh_darwin
but was told this is maybe an issue that needs to be fixed upstream innh
.The text was updated successfully, but these errors were encountered: