Using a local folder for NuGet packages with a NuGet API causes packages to only restore from NuGet API

Open
#3,142 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Domain
tooling

Research direction

Reproduce the behavior with a paket.dependencies file containing a local folder source and the NuGet API, then run paket update. Trace how Paket selects a package when matching versions exist in both sources; done means the package is restored from the local folder as expected.

Written by the indexing model from the issue text.

Description

bug
Description

I have a .Net core application with 2 package sources, a local folder on the file system and the NuGet API feed. The local folder on the file system has a modified version of Saturn with the same version number as the version of Saturn available on NuGet. Running mono .paket/paket.exe update does not take the package from the local file system

Repro steps
  1. Create a folder on the local machine with a NuGet package which is also available on NuGet

  2. Create a new .Net core project

  3. Add a dependency to paket.dependencies which is available in the local folder as well as on NuGet

  4. Add the local folder as the first source in the paket.dependencies file

  5. Run paket update

Expected behavior

I'd expect Paket to use the local file system to restore the NuGet package

Actual behavior

Paket restores the package from the NuGet API feed instead

Known workarounds

No known workarounds right now

Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fsprojects/Paket

All issues in fsprojects/Paket

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.