mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
parent
a8edf185a9
commit
39d72640c2
8 changed files with 33 additions and 18 deletions
|
@ -629,7 +629,7 @@ void EvalState::addToSearchPath(const string & s, bool warn)
|
|||
path = absPath(path);
|
||||
if (pathExists(path)) {
|
||||
debug(format("adding path `%1%' to the search path") % path);
|
||||
searchPath.insert(searchPathInsertionPoint, std::pair<string, Path>(prefix, path));
|
||||
searchPath.push_back(std::pair<string, Path>(prefix, path));
|
||||
} else if (warn)
|
||||
printMsg(lvlError, format("warning: Nix search path entry `%1%' does not exist, ignoring") % path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue