-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Print path names built by nix build #1647
Conversation
I'm not sure why this PR was never merged. Just forgotten maybe? Or is there any objection? In the meantime, for users who would like to continue using the otherwise nicer
Then
|
Any updates on this patch? |
I need this :( I don't like spraying |
@shlevy @copumpkin Could you have a look? |
I feel that the |
What about |
Should we setup a poll for the community ?
or do we have to discuss further options ? |
|
Removing the directory pollution would be nice -- particularly when you run a bunch of builds and get Regarding the stdout, I'd say it's generally in line with most unix tools that they produce stdout, which makes it easy and convenient to pipe them to other commands in the shell. |
Just to note I still find it interesting that the stdout solution is essentially a less reliable one (due to the GC). However, it is oh-so-convenient I must say. For development I often do things like:
or:
I think it's fine there is a (almost non-existent) possibility that these commands fails due to the GC interferring. If there is a good 'best of both worlds' solution, I'm all ears :D |
@edolstra There was pretty good suggestion from @ElvishJerricco to use something |
I consider that suggestion a compromise :P I'd much rather have output on stdout by default. I don't consider it pollution since it's just providing the result in a unix-y way |
I don't think changing defaults is a viable way to go. There will be resistance to merge, because existing scripts will break. Maybe this is OK for Nix 2.0? |
@bobvanderlinden The surface area for breakage caused by going from no output to some output seems small to me. Considering the Nix 2.0 commands are pretty explicitly marked experimental, I think this is ok. |
Ah, yes, that seems fine. I thought removing the result symlink as well. |
Think this should be closed by #4182? |
When building with
nix build --no-link
, there is otherwise no way to know the store path that was built.