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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
I didn't test it, but I think the logic was correct as it was. Now I think ASPELL_CONF will point to the first possible entry in $NIX_PROFILES, whereas we want it to point to the last. Reasoning being that if aspell is installed with nix-env -i ... then that should take priority over the system installed version.
Also, the commit message confuses me. Didn't the previous code also "only set ASPELL_CONF from NIX_PROFILES in wrapper if unset"?. (There is already a check for empty ASPELL_CONF above.)
The reason will be displayed to describe this comment to others. Learn more.
ugh, I don't know how I missed that check for empty aspell above... I will revert this commit. I didn't know that NIX_PROFILES was supposed to have any guarranted order.
399065f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't test it, but I think the logic was correct as it was. Now I think ASPELL_CONF will point to the first possible entry in $NIX_PROFILES, whereas we want it to point to the last. Reasoning being that if aspell is installed with
nix-env -i ...
then that should take priority over the system installed version.Also, the commit message confuses me. Didn't the previous code also "only set ASPELL_CONF from NIX_PROFILES in wrapper if unset"?. (There is already a check for empty ASPELL_CONF above.)
399065f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ugh, I don't know how I missed that check for empty aspell above... I will revert this commit. I didn't know that
NIX_PROFILES
was supposed to have any guarranted order.399065f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if it's written down anywhere (the order of $NIX_PROFILES). I'm just guessing :-)