-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Nix Pill Nr. 10 builder.sh ./configure not found #124
Comments
We could make the builder error out when there are multiple directories in but as you can see that would unnecessarily increase the builder complexity without adding didactic value. It is common practice to run tutorials in their own directory, if just for the ease of clean up afterwards. It will probably be better to add such suggestion to https://nixos.org/nixos/nix-pills/working-derivation.html#idm140737316246784 instead. |
yes a note in the beginning would be fine as well :) |
Trying out Nix Pill Nr. 10 Part 1:
It says:
source builder.sh
But this fails with :
thus i added some debug code which print the directory name found by the builder.sh:
To my suprprise this prints "Desktop" instead of "hello-2.10" .
Which makes sense because this loop (iiuic) iterates over every file and if it's a directory it cd's into it.
and Desktop is the first directory therefore it will cd into "Desktop" instead of "hello-2.10" .
Imo this is a bug in builder.sh.
With the following workaround it will work:
But I think the proper way would be to change the "cd"-logic in builder.sh
The text was updated successfully, but these errors were encountered: