mirror of
https://github.com/NixOS/nix.git
synced 2025-12-13 04:21:04 +01:00
Tarball fetcher: Handle lock files that *do* contain lastModified
Fixes flake-regressions/tests/DeterminateSystems/eva/0.1.0: error: 'lastModified' attribute mismatch in input 'https://api.flakehub.com/f/pinned/ipetkov/crane/0.14.1/018ac45c-ff5e-7076-b956-d478a0336516/source.tar.gz?narHash=sha256-mnE14re43v3/Jc50Jv0BKPMtEk7FEtDSligP6B5HwlI%3D', expected 1695511445
This commit is contained in:
parent
78b5b4c105
commit
7d1f7f8d59
2 changed files with 9 additions and 7 deletions
|
|
@ -220,8 +220,8 @@ void InputScheme::checkLocks(const Input & specified, const Input & final) const
|
|||
|
||||
if (auto prevLastModified = specified.getLastModified()) {
|
||||
if (final.getLastModified() != prevLastModified)
|
||||
throw Error("'lastModified' attribute mismatch in input '%s', expected %d",
|
||||
final.to_string(), *prevLastModified);
|
||||
throw Error("'lastModified' attribute mismatch in input '%s', expected %d, got %d",
|
||||
final.to_string(), *prevLastModified, final.getLastModified().value_or(-1));
|
||||
}
|
||||
|
||||
if (auto prevRev = specified.getRev()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue