-
Notifications
You must be signed in to change notification settings - Fork 132
add source-build pre-built detection #933
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
add source-build pre-built detection #933
Conversation
Will the title of this PR be copied to the release notes as is? If so, please include "source-build" in it. I totally expected "pre-build detection" to be a new feature that detects if the CI pipeline has run Uh I suppose I got confused about the repository as well. |
fcab584
to
c616e6c
Compare
c6134d4
to
f0df3de
Compare
@oleksandr-didyk - Can you give a status on this please? Is there in-progress work or is it blocked or just pending work? Thanks |
f0df3de
to
a2e7374
Compare
It was initially waiting for the Arcade bump to flow in. The change got into |
9e2f00b
to
02f5032
Compare
OK there's one more PR that I just submitted that will again make things easier and this PRs diff much smaller: #1003. I suggest to also wait for that one. |
c9d7ba3
to
99d65a8
Compare
@@ -4,6 +4,7 @@ | |||
<TargetFrameworks>$(NetCurrent)</TargetFrameworks> | |||
<!-- Allow tool to roll forward to a newer major version. --> | |||
<RollForward>Major</RollForward> | |||
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild> |
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.
Why does this tool need to be excluded from source build? Please add a comment as it isn't clear just from reading the code.
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 did it based on the project's description:
<Description>Command line tool for SourceLink testing.</Description>
Since I thought it is a tool used for testing, but reading it again I might be wrong here. Maybe @tmat can clarify it
Additionally
<PackAsToolShimRuntimeIdentifiers>win-x64;win-x86;osx-x64</PackAsToolShimRuntimeIdentifiers>
causes some additional packages to get pulled in that are marked as pre-builts:
<Usage Id="Microsoft.AspNetCore.App.Runtime.osx-x64" Version="8.0.0-preview.3.23177.8" />
<Usage Id="Microsoft.AspNetCore.App.Runtime.win-x64" Version="8.0.0-preview.3.23177.8" />
<Usage Id="Microsoft.AspNetCore.App.Runtime.win-x86" Version="8.0.0-preview.3.23177.8" />
<Usage Id="Microsoft.NETCore.App.Host.osx-x64" Version="8.0.0-preview.3.23174.8" />
<Usage Id="Microsoft.NETCore.App.Host.win-x64" Version="8.0.0-preview.3.23174.8" />
<Usage Id="Microsoft.NETCore.App.Host.win-x86" Version="8.0.0-preview.3.23174.8" />
<Usage Id="Microsoft.NETCore.App.Runtime.osx-x64" Version="8.0.0-preview.3.23174.8" />
<Usage Id="Microsoft.NETCore.App.Runtime.win-x64" Version="8.0.0-preview.3.23174.8" />
<Usage Id="Microsoft.NETCore.App.Runtime.win-x86" Version="8.0.0-preview.3.23174.8" />
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.
It should be included. This is not a shipping product yet but it is meant to be. It's for customers to test that their binaries have correct Source Link.
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.
This is not a shipping product yet
Can this be done as a separate issue to not block this PR? Or it being excluded for some time is a no-go?
Specifically since the assets pulled in by PackAsToolShimRuntimeIdentifiers
are non-Linux; or can this property be simply excluded? (as source-build is Linux-only for now)
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.
IMO if source build repositories currently don't depend on the tool, it shouldn't be an issue to exclude it for now and track enabling it.
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.
Created an issue for it -> #1028
d790a53
to
81716f5
Compare
Updated [Microsoft.SourceLink.GitHub](https://github.com/dotnet/sourcelink) from 1.1.1 to 8.0.0. <details> <summary>Release notes</summary> _Sourced from [Microsoft.SourceLink.GitHub's releases](https://github.com/dotnet/sourcelink/releases)._ ## 8.0.0 ## What's Changed **Source Link is now included in .NET SDK 8 and enabled by default. Projects that migrate to .NET SDK 8 do not need to reference Source Link packages explicitly via `PackageReference` anymore.** * Add sparse checkout support by @pakrym in dotnet/sourcelink#772 * Add support for Gitee by @luocs in dotnet/sourcelink#922 * Fix target Input Output as to not interfere with incremental. by @yuehuang010 in dotnet/sourcelink#901 * Prepare for inclusion in .NET SDK by @tmat in dotnet/sourcelink#988 * Avoid creating source link .json file when no source control mapping is available by @tmat in dotnet/sourcelink#989 * Do not report warnings when SourceLink packages are not referenced ex… by @tmat in dotnet/sourcelink#991 * Bump version to 8.0 to match SDK by @tmat in dotnet/sourcelink#992 * Fix FileWrites by @tmat in dotnet/sourcelink#995 * Remove unnecessary <?xml tags by @ViktorHofer in dotnet/sourcelink#1013 * Remove unnecessary license header in msbuild by @ViktorHofer in dotnet/sourcelink#1014 * Allow multiple Source Link assemblies to be loaded from different locations by @tmat in dotnet/sourcelink#1034 * New command-line APIs and `offline` argument by @NikolaMilosavljevic in dotnet/sourcelink#1068 * Do not report warning if submodule dir is missing by @tmat in dotnet/sourcelink#1078 ## New Contributors * @MichaelSimons made their first contribution in dotnet/sourcelink#836 * @alexperovich made their first contribution in dotnet/sourcelink#867 * @ShreyasJejurkar made their first contribution in dotnet/sourcelink#892 * @pakrym made their first contribution in dotnet/sourcelink#772 * @IanKemp made their first contribution in dotnet/sourcelink#889 * @luocs made their first contribution in dotnet/sourcelink#922 * @yuehuang010 made their first contribution in dotnet/sourcelink#901 * @NikolaMilosavljevic made their first contribution in dotnet/sourcelink#994 * @oleksandr-didyk made their first contribution in dotnet/sourcelink#933 * @v-chayan made their first contribution in dotnet/sourcelink#1054 **Full Changelog**: dotnet/sourcelink@1.1.1...8.0.0 Commits viewable in [compare view](dotnet/sourcelink@1.1.1...8.0.0). </details> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Xkonti <[email protected]>
Resolves #932
Additionally created a subscription for the dependency on
runtime
(disabled until this PR is merged):CC: @MichaelSimons @crummel