Fix stale preindexed package details#30
Merged
Gabriel Dufresne (GabrielDuf) merged 2 commits intoJun 1, 2026
Merged
Conversation
Ensure explicit version and channel requests do not silently fall back to latest manifests. Refresh stale pre-indexed indexes on bounded explicit misses and add cache freshness coverage for C# and Rust. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Verify downloaded pre-indexed cache files before persisting them and replace Rust source indexes without deleting the existing fallback first. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Gabriel Dufresne (GabrielDuf)
approved these changes
Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes stale WinGet package details for explicit version/channel requests in both the C# and Rust implementations.
index.dbthrough a temporary file in both implementations to avoid partially written active indexes.C# changes
RepositoryOptions.PreIndexedSourceAutoUpdateIntervalandMissingPackageVersionException.Pooling=Falsefor pre-indexed reads so refresh replacement is safe on Windows.Rust changes
RepositoryOptions.pre_indexed_source_auto_update_intervalwith builder support.Validation
dotnet format dotnet\Devolutions.Pinget.slnx --verbosity minimaldotnet test dotnet\src\Devolutions.Pinget.Core.Tests\Devolutions.Pinget.Core.Tests.csproj -c Release --no-restore— 180 total, 179 passed, 1 skippeddotnet build dotnet\Devolutions.Pinget.slnx -c Release --no-restorepwsh -NoLogo -NoProfile -File (Resolve-Path 'dotnet\tests\RunTests.ps1')— 13 passedcargo +nightly fmt --manifest-path rust\Cargo.toml --allcargo clippy -q --manifest-path rust\Cargo.toml --workspace --tests -- -D warningscargo test -p pinget-core --manifest-path rust\Cargo.toml— 151 passedcargo test -p pinget-cli --manifest-path rust\Cargo.toml— 9 passedcargo build -p pinget-cli --manifest-path rust\Cargo.tomlgit --no-pager diff --check