wgnf / liz

liz (ˈlɪz) is a tool to extract license-information from your project/solution aimed on a fast and correct process. Whether it's via a dotnet-CLI-Tool, Cake-Addin or Nuke-Addon
MIT License
9 stars 0 forks source link

[BUG]: "download packages that are not in the cache" doesn't work with Central Package Management (CPM) enabled #118

Closed wgnf closed 1 year ago

wgnf commented 1 year ago

Description of the bug

When a solution has the CPM enabled and during the analyzation some packages are not in the cache (which rarely happens) the remaining packages cannot be downloaded, because the current approach does not work when CPM is enabled

Steps to reproduce

  1. Create a solution where CPM is enabled
  2. Analyze using liz
  3. trigger "download packages that are not in cache"
  4. Observe error

Additional Information

the current download approach uses a dummy project using Version. When CPM is enabled one could use VersionOverride.
We'd have to see if we have to check if CPM is enabled for the current solution and switch the approach according or if VersionOverride can be used for everything.

And there is also an option EnableVersionOverride which can be disabled, which would break above mentioned approach too.