nix profile upgrade: Handle unlockable inputs properly

This commit is contained in:
Eelco Dolstra 2022-06-01 13:25:13 +02:00
parent f917970df8
commit 6285c91619
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -478,7 +478,7 @@ struct CmdProfileUpgrade : virtual SourceExprCommand, MixDefaultProfile, MixProf
auto [attrPath, resolvedRef, drv] = installable->toDerivation();
if (element.source->resolvedRef == resolvedRef) continue;
if (resolvedRef.input.isLocked() && element.source->resolvedRef == resolvedRef) continue;
printInfo("upgrading '%s' from flake '%s' to '%s'",
element.source->attrPath, element.source->resolvedRef, resolvedRef);