Skip to content

Fix nuget download force#187

Open
Splaxi wants to merge 2 commits into
fscpscollaborative:developfrom
Splaxi:fix-nuget-download-force
Open

Fix nuget download force#187
Splaxi wants to merge 2 commits into
fscpscollaborative:developfrom
Splaxi:fix-nuget-download-force

Conversation

@Splaxi

@Splaxi Splaxi commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

While trying to work with the new parallel parameters, I saw that it re-downloaded all nugets, over and over.

This changes helps to module stay with the current implementation, but allowing to override.

One could argue that the current implementation is incorrect...

Splaxi and others added 2 commits July 9, 2026 22:39
- Add fscCompileNugetForce setting (default $true) to keep the original
  force-download behaviour; set $false to reuse already downloaded packages
  and keep them during cleanup for faster repeated local builds.
- Drive the compiler NuGet downloads and packages-folder cleanup off the
  new setting in Invoke-FSCCompile.
- Fix Get-FSCPSNuget size comparison: read the blob size from the PSFSize
  '.Size' property instead of '.Length' (which returned 1 and forced a
  re-download every run), and log the correct local size.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant