mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
* Print a warning that the subpath operator (~) is deprecated.
This commit is contained in:
parent
c0bfcbdd45
commit
a18d02e0b0
1 changed files with 5 additions and 0 deletions
|
@ -197,6 +197,11 @@ static void processBinding(EvalState & state, Expr e, Derivation & drv,
|
|||
else if (matchNull(e)) ss.push_back("");
|
||||
|
||||
else if (matchSubPath(e, e1, e2)) {
|
||||
static bool warn = false;
|
||||
if (!warn) {
|
||||
printMsg(lvlError, "warning: the subpath operator (~) is deprecated, use string concatenation (+) instead");
|
||||
warn = true;
|
||||
}
|
||||
Strings ss2;
|
||||
processBinding(state, evalExpr(state, e1), drv, ss2);
|
||||
if (ss2.size() != 1)
|
||||
|
|
Loading…
Reference in a new issue