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

Ensure we're doing the right thing with adding paths to strings #400

Open
shlevy opened this issue Nov 18, 2018 · 2 comments
Open

Ensure we're doing the right thing with adding paths to strings #400

shlevy opened this issue Nov 18, 2018 · 2 comments

Comments

@shlevy
Copy link
Member

shlevy commented Nov 18, 2018

This isn't confusing at all:

nix-repl> { outPath = ./.; } + "/foo"
"/run/user/1000/home/foo"

nix-repl> ./. + "/foo"
/run/user/1000/home/foo

nix-repl> "foo" + ./.
"foo/nix/store/gy107asivi1cbisazsqyivmnrklifmqm-home"

nix-repl> "foo" + { outPath = ./.; }
"foo/nix/store/gy107asivi1cbisazsqyivmnrklifmqm-home"

Note especially that the return type of the second example is a path, not a string.

@shlevy shlevy added this to To do in String Context via automation Nov 18, 2018
@mightybyte
Copy link
Member

Pinging @kmicklas because this is currently using hackyStringIgnoreContext which I believe he is working on.

@Anton-Latukha
Copy link
Collaborator

hackyStringIgnoreContext are no longer hacky (#386 & such), the became normal.

From the above - only nix-repl> "foo" + ./. does not work, in fact looks like does not halt.

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

No branches or pull requests

3 participants