Skip to content

Fix Conditional Group Dependencies not working as expected - #2335

Merged
matthid merged 5 commits into
masterfrom
fix_razorEngine_465
May 14, 2017
Merged

matthid merged 5 commits into
masterfrom
fix_razorEngine_465

Conversation

@matthid

@matthid matthid commented May 13, 2017

Copy link
Copy Markdown
Member

@matthid
matthid force-pushed the fix_razorEngine_465 branch from 3a07af9 to 6613988 Compare May 13, 2017 12:23
@matthid matthid changed the title add failing test Fix Conditional Group Dependencies not working as expected May 13, 2017
false
| _ ->
dict.Add(packageName,v)
dict.Add(packageName,(v,hasCondition))

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here are the relevant changes...

| true,(v',hasCondition') ->
if v' = v then
traceWarnfn "Package %O is referenced through multiple groups in %s (inspect lockfile for details). To resolve this warning use a single group for this project to get a unified dependency resolution or use conditions on the groups if you know what you are doing." packageName project.FileName
false

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can argue about this warning, but I think it's the correct thing to do...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @agross This basically means you get this warning on your example from #1458. IMHO we should not encourage this kind of paket group usage.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matthid

matthid commented May 14, 2017

Copy link
Copy Markdown
Member Author

Apparently we broke the CI with 5e9c716 (because the error message was changed only in the code, not in the test). Maybe we should have a similar test running on travis as well?
For now I'll just go ahaid and fix it as part of this PR...

| DependenciesFile _ ->
loop tl (errorReport.AppendLinef " - Dependencies file requested package %O: %s%s" req.Name vr pr)
| Package (parentName,version,_) ->
loop tl (errorReport.AppendLinef " - %O %O requested package %O: %s%s" parentName version req.Name vr pr)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

req here is a bug, right?

@forki

forki commented May 14, 2017 via email

Copy link
Copy Markdown
Member

@matthid
matthid merged commit 4350a84 into master May 14, 2017
@matthid

matthid commented May 14, 2017

Copy link
Copy Markdown
Member Author

AppVeyor seems kind of slow today, but I don't think the timeouts are related to the changes in this PR...

@matthid

matthid commented May 14, 2017

Copy link
Copy Markdown
Member Author

Or we introduced some change which makes everything slower recently ...

@matthid
matthid deleted the fix_razorEngine_465 branch June 15, 2017 22:11
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