Paket: Why doesn't restore fail on out of sync?

Created on 11 Oct 2016  路  5Comments  路  Source: fsprojects/Paket

When I run paket restore after a change to the paket.dependencies file I get 'paket.dependencies and paket.lock are out of sync' and it suggests I do an install or update. However the packet restore proceeds normally and does not fail. Is there a reason it behaves like this? It seems failure would be the desired behavior unless you specified otherwise however there's no option to force a failure when the lock file is out of sync. This is problematic for us because it allows forgetful developers to commit mismatched files that don't fail locally and don't fail the build but don't necessarily have the expected behavior.

Most helpful comment

That said, I think a special command line parameter that fails the build in such a situation would be accepted.

All 5 comments

This is by design. We always restore exactly the stuff that's given in the lock file.

That said, I think a special command line parameter that fails the build in such a situation would be accepted.

I seem to be having integration tests failing on linux but not on windows and I haven't been able to replicate locally.

Closing, added by @sarudak as --fail-on-checks

Was this page helpful?
0 / 5 - 0 ratings