diff options
author | Kevin Amado <kamadorueda@gmail.com> | 2022-01-21 10:43:49 -0500 |
---|---|---|
committer | Kevin Amado <kamadorueda@gmail.com> | 2022-01-21 16:32:43 -0500 |
commit | 3d2ad2b70ba26114bfd5ba55d8b580d4f3b158af (patch) | |
tree | 25e46115bd8390f9e51bb01f6c0eff099783e1af | |
parent | c3896e19d0001b4f729017aa96d0a44b6e479a52 (diff) |
forceList: make pos mandatory
-rw-r--r-- | src/nix/prefetch.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/prefetch.cc b/src/nix/prefetch.cc index 7044ead10..de657d6f5 100644 --- a/src/nix/prefetch.cc +++ b/src/nix/prefetch.cc @@ -33,7 +33,7 @@ string resolveMirrorUrl(EvalState & state, string url) auto mirrorList = vMirrors.attrs->find(state.symbols.create(mirrorName)); if (mirrorList == vMirrors.attrs->end()) throw Error("unknown mirror name '%s'", mirrorName); - state.forceList(*mirrorList->value); + state.forceList(*mirrorList->value, noPos); if (mirrorList->value->listSize() < 1) throw Error("mirror URL '%s' did not expand to anything", url); @@ -200,7 +200,7 @@ static int main_nix_prefetch_url(int argc, char * * argv) /* Extract the URL. */ auto & attr = v.attrs->need(state->symbols.create("urls")); - state->forceList(*attr.value); + state->forceList(*attr.value, noPos); if (attr.value->listSize() < 1) throw Error("'urls' list is empty"); url = state->forceString(*attr.value->listElems()[0]); |