Skip to content

Generates and parses strategy option in lock file - #1196

Merged
forki merged 2 commits into
fsprojects:masterfrom
mrinaldi:lockfile_strategy_option
Nov 5, 2015
Merged

forki merged 2 commits into
fsprojects:masterfrom
mrinaldi:lockfile_strategy_option

Conversation

@mrinaldi

@mrinaldi mrinaldi commented Nov 5, 2015

Copy link
Copy Markdown
Contributor

This PR generates and parses strategy option in lock file. The lack of it is causing the install process to detect changes when there is none.

Running paket install several times against this paket.dependencies:

source https://www.nuget.org/api/v2/
strategy: min

nuget Paket.Core

would not skip the resolver. Here is the output:

Paket version 2.22.0.0
Resolving packages for group Main:
 - Paket.Core 2.22.0
 - FSharp.Core 3.0.2
 - Newtonsoft.Json 3.5.8
D:\Projects\paket-test\paket.lock is already up-to-date
1 second - ready.

This is the output of this PR:

Paket version 2.22.0.0
Skipping resolver for group Main since it is already up-to-date
D:\Projects\paket-test\paket.lock is already up-to-date
0 seconds - ready.

@forki

forki commented Nov 5, 2015

Copy link
Copy Markdown
Member

very good.

in the default case (Strategy max) we should not touch the lock file. is this the case?

@mrinaldi

mrinaldi commented Nov 5, 2015

Copy link
Copy Markdown
Contributor Author

The default case is actually no strategy at all, which internally will be treated as max.
Indeed, for that case, we don't touch the lock file.

If the strategy max is specified though, it'll touch the lock file, and I believe it should, since it's explicit specified.

@forki

forki commented Nov 5, 2015

Copy link
Copy Markdown
Member

very good!

forki added a commit that referenced this pull request Nov 5, 2015
Generates and parses strategy option in lock file
@forki
forki merged commit a6e4d67 into fsprojects:master Nov 5, 2015
@mrinaldi
mrinaldi deleted the lockfile_strategy_option branch November 5, 2015 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants