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] NIX_SSL_CERT_FILE: unbound variable #2193

Closed
bflyblue opened this issue May 30, 2018 · 3 comments
Closed

[macOS] NIX_SSL_CERT_FILE: unbound variable #2193

bflyblue opened this issue May 30, 2018 · 3 comments

Comments

@bflyblue
Copy link

I believe this patch has introduced an error when installing on OS X without
NIX_SSL_CERT_FILE being set in the environment:

c4b9486

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo HOME=/var/root /nix/store/2jp9d9qns3372hkx4k523hc1bbzkr4yp-nix-2.0.3/bin/nix-env -i /nix/store/2jp9d9qns3372hkx4k523hc1bbzkr4yp-nix-2.0.3

to installing a bootstrapping Nix in to the default Profile

installing 'nix-2.0.3'
building '/nix/store/jp5371ld47218v5bzc6m5584l8b8w2n1-user-environment.drv'...
created 7 symlinks in user environment
/var/folders/4t/sfj5mbdn7693nqhj99vz0k800000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.uw14ghw7/unpack/nix-2.0.3-x86_64-darwin/install-multi-user: line 730: NIX_SSL_CERT_FILE: unbound variable

---- oh no! --------------------------------------------------------------------

I was able to work around with export NIX_SSL_CERT_FILE="" before running install-nix.

@grahamc
Copy link
Member

grahamc commented May 30, 2018

The installer was rolled back to 2.0.2 on the website, so this should be solved for now. There is also a patch merged to master, to be merged and released as 2.0.4. Thank you, and so sorry for the problem.

I'm going to work on a testing matrix to do a more thorough testing of the installers prior to release.

@bflyblue
Copy link
Author

Thanks for sorting it out so quickly! I know Nix on OS X doesn't get as many eyes so I'm glad to help :)

@grahamc
Copy link
Member

grahamc commented May 30, 2018

Actually ... it is worse than it seems. The PR breaking this on macOS was written for a deployment to macOS hosts. I evidently failed to test the case where NIX_SSL_CERT_FILE isn't set before running the installer. I thought I had. In fact, I thought I had tested it this morning -- not a case of not trying, but I thought the variable was unset! I don't know how I made that mistake.

Thank you for reporting it, I will try to not ever let this happen again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants