You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nix search path doesn't seem to handle long paths correctly #114
$ nix-instantiate -vvv -I charon=/run/current-system/sw/lib/python2.7/site-packages/charon-0.1-py2.7.egg/charon/../../../../../share/nix/charon --find-file charon
setting initial heap size to 402653184 bytes
adding path `/home/shlevy/dotfiles-private' to the search path
adding path `/home/shlevy/src' to the search path
adding path `/etc/nixos/configuration.nix' to the search path
adding path `/nix/store/qkj5cxknwspz8ak0ganm97zfr2bhksgn-nix-1.5.2pre3082_2398417/share/nix/corepkgs' to the search path
/home/shlevy/src/charon
OK, it looks like the bug (if it is a bug) is in absPath. It absolutlizes /run/current-system/sw/lib/python2.7/site-packages/charon-0.1-py2.7.egg/charon/../../../../../share/nix/charon to /run/current-system/sw/share/nix/charon instead of /nix/store/fqfnzh68z0vpjw0sn2nimj1pm905vnwh-charon-0.1pre635_60c5266/share/nix/charon (following symlinks properly).
OK, now I see that canonPath has a resolveSymlinks parameter, so this behavior is expected. The real fix is to either have charon pass an absolute path to the expressions or to include /share/nix in my system configuration.
Activity
shlevy commentedon Apr 22, 2013
OK, it looks like the bug (if it is a bug) is in absPath. It absolutlizes
/run/current-system/sw/lib/python2.7/site-packages/charon-0.1-py2.7.egg/charon/../../../../../share/nix/charonto/run/current-system/sw/share/nix/charoninstead of/nix/store/fqfnzh68z0vpjw0sn2nimj1pm905vnwh-charon-0.1pre635_60c5266/share/nix/charon(following symlinks properly).@edolstra is this behavior of absPath desired?
shlevy commentedon Apr 22, 2013
OK, now I see that
canonPathhas aresolveSymlinksparameter, so this behavior is expected. The real fix is to either have charon pass an absolute path to the expressions or to include/share/nixin my system configuration.Pass the real path to the charon nix expressions to nix
Pass the real path to the charon nix expressions to nix
Pass the real path to the charon nix expressions to nix
Pass the real path to the charon nix expressions to nix
Pass the real path to the charon nix expressions to nix
Pass the real path to the charon nix expressions to nix
Pass the real path to the charon nix expressions to nix
Pass the real path to the charon nix expressions to nix
Pass the real path to the charon nix expressions to nix
Pass the real path to the charon nix expressions to nix
Pass the real path to the charon nix expressions to nix
Merge pull request NixOS#114 from DeterminateSystems/push-zlvvuopvyszo
libstore/derivation-options: introduce getAttr<T> template
doc/inventory: record 30 candidates landed across the four cleanup sh…
doc/inventory: traceability + post-review updates after deeper audits
libstore/derivation-options: introduce getAttr<T> template