Repository navigation
[repo-assist] Ignore assembly self-references in DLL ordering; keep unorderable items - #4459
Merged
fpellet merged 3 commits intoOct 26, 2026
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
System.Reactive 7.0 references itself, so it never became a leaf and was dropped from the group load scripts, with every assembly ordered after it. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… ordered The order stopped at the first cycle and dropped every item left. It now forces the items of one name lying on a cycle, or whose dependencies are missing, warns about it, and orders the rest after it.
fpellet
force-pushed
the
repo-assist/fix-issue-4458-dll-self-reference-dd7af362bddbb7c4
branch
from
October 26, 2026 15:13
9828586 to
3a5f882
Compare
fpellet
marked this pull request as ready for review
October 26, 2026 15:13
fpellet
deleted the
repo-assist/fix-issue-4458-dll-self-reference-dd7af362bddbb7c4
branch
October 26, 2026 15:31
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.
🤖 This is an automated PR from Repo Assist, reworked after review.
Closes #4458
Root cause
System.Reactive 7.0 references itself.
getDllOrderkept that reference, so the assembly never became a leaf forgetPackageOrderGeneric, which then stopped and silently dropped every item left: System.Reactive, and every assembly ordered after it, disappeared from<group>.group.fsx. The per-package script was not affected, because a package with a single DLL skips the ordering.Changes
refactor:the ordering functions move, unchanged, into amodule internal DependencyOrderofDependencyCache.fs, so that they can be unit tested (Paket.Tests already sees the internals of Paket.Core).fix:getDllOrderignores the reference of an assembly to itself. This alone fixes the repro of the issue.fix:getPackageOrderGenericno longer drops what it cannot order. When no item is left to order, it forces the items of one name lying on a cycle, or whose dependencies are missing from the group, warns about it, and goes on ordering: the items that depend on the cycle still come after it. The warnings name the assembly, by its short name, or the package and its group.The release note covers both fixes.
Tests
tests/Paket.Tests/ScriptGeneration/DependencyOrderTests.fs: a self-referencing assembly next to FSharp.Core (kept, no warning), the usual dependency order, a cycle of two assemblies (one warning, with the short name), a cycle of items, items depending on a cycle (ordered after it), and duplicated names forced out of a cycle (all kept).lib/*) is checked to be equal to the FullName of the assembly.dotnet test tests/Paket.Tests/Paket.Tests.fsproj --filter "FullyQualifiedName~DependencyOrderTests|FullyQualifiedName~LoadingScript"passes 16/16, and thescriptgenintegration tests pass 12, with 1 skipped.Add this agentic workflow to your repo
To install this agentic workflow, run