fsprojects / Paket

A dependency manager for .NET with support for NuGet packages and Git repositories.
https://fsprojects.github.io/Paket/
MIT License
1.99k stars 520 forks source link

Changing source url caches old location #4254

Closed oli-sanders closed 2 months ago

oli-sanders commented 2 months ago

Description

When migrating source location the old location seems to be cached and ignoring --force

Repro steps

Please provide the steps required to reproduce the problem

  1. update source url in paket.dependancies and lock

  2. attempt paket install/restore/update inc with --force

If possible then please create a git repository with a repro sample or attach a zip to the issue.

Expected behavior

new source is used

Actual behavior

Paket failed with -> The NuGet source http://original-source.com/repository/repository-name for package {Package name} was not found in the paket.dependencies file with sources [NuGetV2 { Url = "https://new-source.com/repository/repository-name" Authentication = Paket.NetUtils+AuthProviderModule+ofFunction@38 }]