Sitelet https://github.com/fsprojects/Paket/commit/82a5196c752155a4fbbf2962b3c08ca5bb017f87
Skip to content

Commit 82a5196

Browse files
committed
fail simplify when strict mode detected - references #420
1 parent 2381e73 commit 82a5196

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/Paket.Core/Simplifier.fs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ let Simplify (dependenciesFileName,interactive) =
4747
if not <| File.Exists dependenciesFileName then
4848
failwithf "%s file not found." dependenciesFileName
4949
let depFile = DependenciesFile.ReadFromFile dependenciesFileName
50+
if depFile.Options.Strict then
51+
failwith "Strict mode detected. Will not attempt to simplify dependencies."
5052
let lockFilePath = depFile.FindLockfile()
5153
if not <| File.Exists(lockFilePath.FullName) then
5254
failwith "lock file not found. Create lock file by running paket install."

0 commit comments

Comments
 (0)