-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paket Cannot Unify Packages #1815
Comments
What would unify mean? What would it do? How do we match versions? |
I assume something like the following dependencies file might work as well:
(but we don't have the coreclr moniker yet) |
Ideally I don't want to list FSharp.Core its an indirect reference of Fake.Runtime... After discussion on twitter I do not longer think we need this. This is probably just a bug (if someone stubles over it) |
we will look at the concrete repro case that @matthid will create. Maybe we find a temporary solution for the FSharp.Core case (see also dotnet/fsharp#1054). |
@matthid your packages is ok for netcore sdk, if you do build should use only one of the two.
|
Paket seems to be doing the correct thing... Sorry for the confusion. |
…ult as integration test. Update FSharp.Compiler.Service and mono.cecil
…ult as integration test. Update FSharp.Compiler.Service and mono.cecil
FYI: I had the same problem again after updating to chessi 0.6, because now FSharp.Core actually was used in Netstandard. I fixed this by updating everything to latest FSharp.Core alpha ... |
…ult as integration test. Update FSharp.Compiler.Service and mono.cecil
…ult as integration test. Update FSharp.Compiler.Service and mono.cecil
…ult as integration test. Update FSharp.Compiler.Service and mono.cecil
Description
We currently have this unfortunate situation that multiple nuget packages actually describe the same package.
For example
Microsoft.FSharp.Core.netcore
andFSharp.Core
are actually the same package.A lot of other packages have the same problem.
I think we should have a paket feature to workaround this for the time being. This really hits me hard in fsprojects/FAKE#1281.
Repro steps
I created a new Fake.Runtime package with
Later when I'm trying to pull this package and try to get all references for netstandard1.6, I get:
Which is correct AFAICT. Problem is that now I get
error FS0215: Multiple references to 'FSharp.Core.dll' are not permitted
from FCS.Expected/Actual behavior
No idea, I think the behavior is correct.
Known workarounds
Using different groups with framework restrictions "might" work.
Related information
I think we should have a syntax to tell paket that those two packages are actually the same package?
maybe something like:
unify would unify the package while preferring the first listed item if the package supports a given framework.
Maybe this suggestion is complete nonsense, but I think there should be a workaround for now (I agree that the correct solution is to have a single package). Maybe we should print a big warning when unify is used.
/cc @forki
The text was updated successfully, but these errors were encountered: