dotnet / arcade

Tools that provide common build infrastructure for multiple .NET Foundation projects.
MIT License
657 stars 331 forks source link

Revert "Update NuGet global packages cache detection" #14874

Closed premun closed 1 week ago

premun commented 1 week ago

Reverts dotnet/arcade#14763

premun commented 1 week ago

@sharwell we need to urgently flow arcade so I am reverting your changes until you have a fix

sharwell commented 1 week ago

@premun The fix was submitted yesterday in #14868, but I have no good way to validate it

premun commented 1 week ago

@sharwell you can possibly:

  1. Build your Arcade branch locally, this will produce some 1.0.0-dev version of the packages somewhere in the artifacts/packages/ folder.
  2. Add the nuget folder to NuGet.config of your local arcade-validation
  3. Set the Arcade versions to 1.0.0-dev
  4. Now arcade-validation restores from your local folder
  5. Build and run the unit tests locally
sharwell commented 1 week ago

@premun Can you clarify how to perform step (3)?

premun commented 1 week ago

In arcade-validation, in eng/Versions.props or wherever (maybe Directory.Packages.props), make the repo depend on this local version.