Paket failed to retrieve a local package when a part of the id starts by a digit.
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 2.1k
- Forks
- 528
- Avg merge
- 1d 12m
- Merged PRs (30d)
- 54
Description
Description
Paket failed to retrieve a local package when a part of the id starts by a digit.
version paket.exe 7.2.1.0
Repro steps
Please provide the steps required to reproduce the problem
Create a local package
Core.Inf.CrossCutting.2DBasic 5.5.3-alpha22191 Package DescriptionActual behavior
StackTrace:
error : at Paket.PackageResolver.ResolutionModule.getModelOrFail(Resolution res)
error : at Paket.UpdateProcess.groups@157-5.Invoke(KeyValuePair2 kv)
error : at Microsoft.FSharp.Collections.Internal.IEnumerator.choose@171.System.Collections.IEnumerator.MoveNext()
error : at Microsoft.FSharp.Collections.MapTreeModule.mkFromEnumerator[a,b](IComparer1 comparer, MapTree2 acc, IEnumerator1 e)
error : at Microsoft.FSharp.Collections.MapTreeModule.ofSeq[TKey,T](IComparer1 comparer, IEnumerable1 c)
error : at Microsoft.FSharp.Collections.FSharpMap2.Create(IEnumerable1 ie)
error : at Paket.UpdateProcess.selectiveUpdate(Boolean force, FSharpFunc2 getSha1, FSharpFunc2 getVersionsF, FSharpFunc2 getPackageDetailsF, FSharpFunc2 getRuntimeGraphFromPackage, LockFile lockFile, DependenciesFile dependenciesFile, UpdateMode updateMode, SemVerUpdateMode semVerUpdateMode)
error : at Paket.UpdateProcess.SelectiveUpdate(DependenciesFile dependenciesFile, FSharpOption1 alternativeProjectRoot, UpdateMode updateMode, SemVerUpdateMode semVerUpdateMode, Boolean force)
error : at Paket.UpdateProcess.SmartInstall(DependenciesFile dependenciesFile, UpdateMode updateMode, UpdaterOptions options)
error : at Paket.Utils.RunInLockedAccessMode(String lockedFolder, FSharpFunc2 lockedAction)
error : at Paket.Program.handleCommand@883-11.Invoke(ParseResults1 results)
error : at Paket.Program.processWithValidationEx[a](FSharpFunc2 printUsage, Boolean silent, FSharpFunc2 validateF, FSharpFunc2 commandF, a result)
error : at Paket.Program.handleCommand(Boolean silent, Command command)
error : at Paket.Program.main()
Known workarounds
- remove the digit of the package name and id
- works with paket.exe 4.8.4.666
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at Paket.PackageResolver.ResolutionModule.getModelOrFail, following the stack trace through Paket.UpdateProcess.selectiveUpdate. Reproduce with the supplied nuspec id Core.Inf.CrossCutting.2DBasic and paket.exe 7.2.1.0, then verify local-package retrieval works when an id segment starts with a digit without renaming it.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100