Paket can no longer restore after removing source from dependencies file
Open
Nobody has claimed this yet.
bug
- Dominant language
- F#
- Stars
- 2.1k
- Forks
- 528
- Avg merge
- 1d 12m
- Merged PRs (30d)
- 54
Description
Description
- Use multiple sources to create a lockfile
- Remove a source from the dependencies file (without install/update)
- Restore fails, for example:
$ paket restore --target-framework netstandard2.0
Paket failed with
-> The NuGet source https://www.myget.org/F/fake-vsts/api/v3/index.json for package Fake.Core.Target was not found in the paket.dependencies file with sources [NuGetV3 {Url = "https://api.nuget.org/v3/index.json";
Authentication = Paket.NetUtils+AuthProviderModule+ofFunction@37;}]
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
Reproduce the problem by creating a lockfile with multiple sources, removing one source from paket.dependencies, and running paket restore --target-framework netstandard2.0. Trace the restore path that matches locked package sources and add regression coverage; done means restore no longer fails solely because the removed source is absent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fsharp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100