diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-01-18 12:56:36 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2023-01-18 12:57:03 +0100 |
commit | 01f268322a71de11de8eccd2bfa3130c2d4e9c10 (patch) | |
tree | 733ddd5ab6a43b14b14e9b4e6ae6c0096664fceb | |
parent | d385c13202f1603d626bb4af8ebea6c18155087d (diff) |
Restore support for channel: URLs in fetchTarball
Fixes #7625.
-rw-r--r-- | src/libexpr/primops/fetchTree.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libexpr/primops/fetchTree.cc b/src/libexpr/primops/fetchTree.cc index 680446787..fb392a6e8 100644 --- a/src/libexpr/primops/fetchTree.cc +++ b/src/libexpr/primops/fetchTree.cc @@ -220,6 +220,9 @@ static void fetch(EvalState & state, const PosIdx pos, Value * * args, Value & v } else url = state.forceStringNoCtx(*args[0], pos); + if (who == "fetchTarball") + url = evalSettings.resolvePseudoUrl(*url); + state.checkURI(*url); if (name == "") |