Skip to content

[main] Source code updates from dotnet/fsharp - #8116

Merged
T-Gro merged 9 commits into
mainfrom
darc-main-7c386a99-1ed3-4f5f-9a29-cb73316bd2c2
Aug 5, 2026
Merged

T-Gro merged 9 commits into
mainfrom
darc-main-7c386a99-1ed3-4f5f-9a29-cb73316bd2c2

Conversation

@dotnet-maestro

@dotnet-maestro dotnet-maestro Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Note

This is a codeflow update. It may contain both source code changes from
the source repo
as well as dependency updates. Learn more here.

This pull request brings the following source code changes

From https://github.com/dotnet/fsharp

Diff the source with this PR branch
darc vmr diff --name-only https://github.com/dotnet/fsharp:ea778bb414648883fca4219bf7a69286bf82dd6b..https://github.com/dotnet/dotnet:darc-main-7c386a99-1ed3-4f5f-9a29-cb73316bd2c2

@dotnet-maestro

dotnet-maestro Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Caution

🚨 Action Required — Conflict detected

A conflict was detected when trying to update this PR with changes from build 325449 of https://github.com/dotnet/fsharp/tree/536800cd82a0481c055f08d570bbc924712331b2.

The conflicts in the following files need to be manually resolved:

  • src/Compiler/Checking/CheckDeclarations.fs
    🔍 View file in dotnet/fsharp vs VMR

ℹ️ To resolve the conflicts, please follow these steps:

  1. Clone the current repository

    git clone https://github.com/dotnet/dotnet
    cd dotnet
  2. Make sure your darc is up-to-date
    (version 1.1.0-beta.26374.1 or higher)

    # Linux / MacOS
    ./eng/common/darc-init.sh
    # or on Windows
    .\eng\common\darc-init.ps1
  3. Run from repo's git clone and follow the instructions provided by the command to stage the conflict locally

    darc vmr resolve-conflict --subscription 92c21a83-cb65-45d5-8868-c594bc1eef42 

    This should apply the build 325449 with sources from 536800c

  4. Resolve the conflicts, commit & push the changes

  5. Once pushed, the Codeflow verification check will turn green.
    If not, a new build might have flown into the PR and you might need to run the command above again.

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team August 4, 2026 02:11
@dkurepa

dkurepa commented Aug 4, 2026

Copy link
Copy Markdown
Member

resolved a conflict in src/fsharp/src/Compiler/Checking/CheckDeclarations.fs

Copilot and others added 4 commits August 4, 2026 12:04
The fsc.fsproj and fsi.fsproj explicitly add a System.Security.Cryptography.Xml
PackageReference to override a vulnerable transitive dependency (NU1903). In the
VMR source-build leg, central transitive pinning already provides that package,
so the explicit reference collides with it and restore fails with NU1504
(Duplicate 'PackageReference' items, treated as error). Exclude the explicit
override when DotNetBuildSourceOnly is set; the transitive-pinned package keeps
the override in place there, while non-source-build builds are unaffected.

Co-authored-by: Copilot <[email protected]>
The NU1504 duplicate PackageReference error in the VMR vertical build legs
(Windows_x64, Windows_x86, Ubuntu BuildTests) came from two literal
System.Security.Cryptography.Xml PackageReference items on net11.0:

  * one added upstream in fsc.fsproj / fsi.fsproj (arrived via codeflow), and
  * a redundant VMR-local one added earlier in fsc.targets / fsi.targets
    (commit 515ff87 "Fix NuGet Audit errors and build issues").

Upstream fsharp carries the override only in fsc.fsproj / fsi.fsproj and has
no such reference in the .targets files, so the VMR-local additions are now
obsolete and produce the duplicate. Remove them so fsc.targets / fsi.targets
match upstream, leaving the single upstream override.

This also reverts the previous partial fix that gated the fsproj override on
DotNetBuildSourceOnly; that only silenced source-only legs while the vertical
legs kept failing. The four files now match pristine upstream, fixing all legs
while keeping the NU1903 override in place.

Co-authored-by: Copilot <[email protected]>
After the fsharp codeflow bumped FSharpNetCoreProductTargetFramework from
net10.0 to net11.0, the Microsoft.FSharp.Compiler package now lays its
assemblies (and FSharp.Core.xml) under lib/net11.0. The SDK layout project
tool_fsc.csproj hardcoded net10.0 when resolving FSharp.Core.xml for the
non-source-build (vertical) legs, so the publish copy failed with MSB3030
"Could not copy the file .../lib/net10.0/FSharp.Core.xml because it was not
found" on Windows_x64, Windows_x86 and Ubuntu BuildTests.

The source-build leg already used $(NetCurrent) here and kept working. The
whole compiler package lib folder tracks the current product TFM, and
SdkTargetFramework is likewise $(NetCurrent), so unify the property to
$(NetCurrent) for all build modes. This also matches the repo guidance to
never hardcode a TFM. This failure only surfaced once the NU1504 fsc/fsi
duplicate PackageReference error was resolved and the fsharp build could
complete.

Co-authored-by: Copilot <[email protected]>
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team August 4, 2026 15:07
@dotnet-maestro

dotnet-maestro Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@T-Gro
T-Gro merged commit 13a51a3 into main Aug 5, 2026
16 checks passed
@T-Gro
T-Gro deleted the darc-main-7c386a99-1ed3-4f5f-9a29-cb73316bd2c2 branch August 5, 2026 07:21
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.

2 participants