Skip to content

we need to prefer package over group settings - #2687

Merged
matthid merged 1 commit into
masterfrom
fix_2682
Aug 30, 2017
Merged

matthid merged 1 commit into
masterfrom
fix_2682

Conversation

@matthid

@matthid matthid commented Aug 29, 2017

Copy link
Copy Markdown
Member

we need to prefer package over group settings, fixes #2682

Note: I didn't fully understand the root cause but (especially why a particular comparison contained "None"), but it seems to be obvious that we need to prefer package over group settings (and therefore have them in front of the "+"). @forki could you please quickly review if that makes sense?

This might have lead to incorrect comparisons of restrictions (but I don't get why I saw in the debugger a comparsion of "generate_load_scripts = Some true" with "generate_load_scripts = None"

From my understanding it should never be "None" no matter the order of the arguments?!

@matthid

matthid commented Aug 29, 2017

Copy link
Copy Markdown
Member Author

Ah OK I found the reason:
GenerateLoadScripts is not part of the (+) operator:
https://github.com/fsprojects/Paket/blob/master/src/Paket.Core/Versioning/Requirements.fs#L773-L787

Should it?

@0x53A

0x53A commented Aug 29, 2017

Copy link
Copy Markdown
Contributor

My guess: GenerateLoadScripts was added after the record was created, and the adder forgot to update the operator? See commit f616c8b

I created fsharp/fslang-suggestions#603 ;)

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.

Incorrect warning that dependencies + lock files are out of date

2 participants