Repository navigation
Adding parsing logic for protocolVersion on source - #3844
Conversation
|
hello @forki |
|
yeah don't worry. I'll fix that one |
|
Just rebased the PR but with a conflict on that: For now I have ignored the already merged fix and this should probably be in the method that @baronfel introduced here: |
|
can you please pull bugfix branch again? |
…e could "materialize" back the protocolVersion
…ntGroup.NugetProtocolVersion"
…e to get it back later to be able to emit it before listing packages
…tring definitly looks bad
…used how does InstallOption(Command...) works
…ing a new v2 url from calculateNuGet2Path
…ing completly different here
…rce respect the explicit the specified protocolVersion (this will probably raise error during install/restore but it will be "logic")
…/Paket.Tests.fsproj to be able to debug on bugfix branch
|
Done but I would really love a feedback or a review, as said my Fsharp is not rusty because i'm not sure "how to fsharp properly" :D Also, I kinda discarded the logic during previous rebase, as a similar logic was introduced in This is very odd, and now that it has been merged, discarding it would be a breaking change I suppose ? All that logic and known will just be removed in |
|
@forki If there's anything missing here please don't hesitate to list them all as it might seem obvious but jumps from multiple project I might have forgot few obvious part here |
|
Amazing work! |
|
@tebeco in order to get it to master. Can you please prepare a PR which merges |


Disclamer
Near to zero
FSharpknowledge / experienceNear to zero
Paketcode backgroundThough, used paket for few years now on several C# solution (aside with
Fakebuild and customFake targets)Descritpion
(it's suppose to address: #3842)
This PR intend to stop guessing the
protocolVersionof a nuget source based on variousstring.Containspaketwill assumeNuget protocolVersion 3, no fallback toprotocolVersion 2protocolVersionis specified, it will stick to itprotocolVersionfor that source in thelockfileto be able to also work duringpaket restoreTarget
The initial plan was to release it for
v6.xbut after discussing with @baronfel it's possible to also targetv5.xThe PR has been rebased to
bugfixbranchIn order to make it to
v6few code of code will probably need to be change or deleted :Current state of the PR (will be edited to avoid scrolling if needed)
paket.dependenciespaket.lockpaket.lockprotocolVersionspecified (=> does not default tov3)NugetConvertNugetConvertparsing proper handling : in factnuget.configcould already have aprotocolVersion="3") <=== not this PR I thinkpaket.dependenciesprotocolVersionversionspecified after the tokenprotocolVersion:versionspecified after the tokenprotocolVersion:paket.lockpaket.lockprotocolVersion: 3