-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop publishing of additional packages in fsharp #19404
Changes from 2 commits
8f0c0c9
3a47d7f
9744c07
dd42526
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -598,7 +598,12 @@ | |
<Copy SourceFiles="@(PackageVersionPropsSnapshotFiles)" DestinationFolder="$(PackageReportDir)snapshots/" /> | ||
|
||
<ItemGroup> | ||
<RestoredPackageFile Include="$(NuGetPackageRoot)**/*.nupkg" | ||
<!-- | ||
Note the usage of */*/*.nupkg and not **/*.nupkg. The latter would include nupkgs | ||
carried as content, i.e. in Microsoft.FSharp.Compiler nupkg, and cause false positives. | ||
Content nupkgs were not restored and should not be used in prebuit detection. | ||
--> | ||
<RestoredPackageFile Include="$(NuGetPackageRoot)*/*/*.nupkg" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What if a nuget package includes another nuget packages in the package root? Would that then still be included by this glob? Can we make the glob more specific? I guess it's hard to get this right. Given that there shouldn't be any packages that are doing this, maybe it's OK? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I'm not sure if that would be easy, but I agree that this solution isn't perfect. We've only ever seen this single FSharp package carrying other nupkgs as content. |
||
Exclude="$(NuGetPackageRoot)tests/**/*.nupkg" /> | ||
|
||
<!-- Only contains packages when building. --> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Nikola Milosavljevic <[email protected]> | ||
Date: Wed, 10 Apr 2024 15:26:09 +0000 | ||
Subject: [PATCH] Stop publishing of additional packages | ||
|
||
Backport: https://github.com/dotnet/fsharp/pull/17016 | ||
--- | ||
eng/Publishing.props | 13 ------------- | ||
1 file changed, 13 deletions(-) | ||
delete mode 100644 eng/Publishing.props | ||
|
||
diff --git a/eng/Publishing.props b/eng/Publishing.props | ||
deleted file mode 100644 | ||
index 6a0673b5a..000000000 | ||
--- a/eng/Publishing.props | ||
+++ /dev/null | ||
@@ -1,13 +0,0 @@ | ||
-<Project> | ||
- | ||
- <ItemGroup> | ||
- <!-- | ||
- Additional packages needed to avoid prebuilts in VMR - https://github.com/dotnet/source-build/issues/4203 | ||
- --> | ||
- <ItemsToPushToBlobFeed Include="$(ArtifactsPackagesDir)Dependency\**\*.nupkg" | ||
- IsShipping="true" | ||
- UploadPathSegment="Runtime" | ||
- Condition="'$(DotNetBuildSourceOnly)' == 'true'" /> | ||
- </ItemGroup> | ||
- | ||
-</Project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add an example of a path in the above description to better understand the glob.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I.e. something like
<packageid>/<packageversion>/...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update - thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed with 9744c07