Skip to content

Align Pinget sources with system WinGet - #8

Merged
Marc-André Moreau (mamoreau-devolutions) merged 1 commit into
masterfrom
mamoreau-devolutions/investigate-sources
Apr 28, 2026
Merged

Marc-André Moreau (mamoreau-devolutions) merged 1 commit into
masterfrom
mamoreau-devolutions/investigate-sources

Conversation

@mamoreau-devolutions

Copy link
Copy Markdown
Contributor

Summary

  • delegate packaged Windows source reads and source operations to system winget.exe when WinGet stores user_sources as a secure settings hash stub
  • parse winget source export --disable-interactivity output in the C# core and Rust core so PowerShell, C# CLI, and Rust CLI see the same configured sources as WinGet
  • add C# and Rust coverage for export parsing, source command argument construction, and secure-stub fallback behavior

Validation

  • dotnet test dotnet\src\Devolutions.Pinget.Core.Tests\Devolutions.Pinget.Core.Tests.csproj -c Release
  • dotnet build dotnet\src\Devolutions.Pinget.PowerShell.Engine\Devolutions.Pinget.PowerShell.Engine.csproj -c Release --no-restore
  • dotnet build dotnet\src\Devolutions.Pinget.PowerShell.Cmdlets\Devolutions.Pinget.PowerShell.Cmdlets.csproj -c Release --no-restore
  • pwsh -NoLogo -NoProfile -File (Resolve-Path 'dotnet\tests\RunTests.ps1')
  • cargo +nightly fmt --manifest-path rust\Cargo.toml --all
  • cargo clippy -q --manifest-path rust\Cargo.toml --workspace --tests -- -D warnings
  • cargo test -p pinget-core --manifest-path rust\Cargo.toml
  • cargo build -p pinget-cli --manifest-path rust\Cargo.toml
  • live comparison of winget source export --disable-interactivity, C# pinget source list, Rust pinget source list, and built Get-PingetSource

Delegate packaged Windows source reads and source operations to system winget when WinGet stores user_sources as a secure settings hash stub. Add C# and Rust coverage for export parsing and secure-stub fallback behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mamoreau-devolutions
Marc-André Moreau (mamoreau-devolutions) merged commit d916a94 into master Apr 28, 2026
4 checks passed
@mamoreau-devolutions
Marc-André Moreau (mamoreau-devolutions) deleted the mamoreau-devolutions/investigate-sources branch April 28, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant