Add roslyn repo to known-good#404
Conversation
| @@ -0,0 +1,25 @@ | |||
| From 735b7c82a16ddf16f39643830acb2ee62d2f3150 Mon Sep 17 00:00:00 2001 | |||
There was a problem hiding this comment.
I think this patch should live in tools-local/patches or something like that--to clarify what kind of patch this is and keep repo patches separate.
init-tools.sh
Outdated
| "$__scriptpath/Tools/crossgen.sh" "$__scriptpath/Tools" | ||
|
|
||
| echo "Patching Sdk to workaround issue https://github.com/dotnet/sdk/pull/1997" | ||
| git apply --ignore-whitespace --whitespace=nowarn --directory="$__scriptpath" "$__scriptpath/patches/0001-Patch-Tools-for-sdk-pr-1997.patch" |
There was a problem hiding this comment.
Is it reasonable to do this during tools-local/init-build.proj to avoid customizing this script? (With some semaphore in the Tools dir to avoid attempting it more than once?)
There was a problem hiding this comment.
@dagood and I discussed offline. I will leave it in the init-tools.sh script since 1) it is very temporary and will go away on the next update of CLI version and 2) it can more easily participate in the Tools setup semaphore.
repos/roslyn.proj
Outdated
| <NuSpecFiles Include="$(ProjectDirectory)/src/NuGet/Microsoft.CodeAnalysis.Build.Tasks.nuspec" /> | ||
| </ItemGroup> | ||
|
|
||
| <Target Name="UpdateCLIVersion" |
There was a problem hiding this comment.
Could this be in dir.targets with the json and props paths parameterized? (But we can put the move off until we use it to remove patches in other repos too.)
There was a problem hiding this comment.
I'd rather leave this here for now and move it when we need it for others.
repos/roslyn.proj
Outdated
|
|
||
| <UpdateXml XmlFilePath="$(ProjectDirectory)/build/Targets/Tools.props" | ||
| PathToElement="Project/PropertyGroup/dotnetSdkVersion" | ||
| NewElementValue="$(SDK_VERSION)" /> |
There was a problem hiding this comment.
This needs to be removed once we merge the private branch as we jus condition away this check altogether.
There was a problem hiding this comment.
This can just be removed in this PR as it's based on the dev/sourcebuild branch.
In reply to: 180162495 [](ancestors = 180162495)
init-tools.sh
Outdated
| "$__scriptpath/Tools/crossgen.sh" "$__scriptpath/Tools" | ||
|
|
||
| echo "Patching Sdk to workaround issue https://github.com/dotnet/sdk/pull/1997" | ||
| git apply --ignore-whitespace --whitespace=nowarn --directory="$__scriptpath" "$__scriptpath/patches/0001-Patch-Tools-for-sdk-pr-1997.patch" |
There was a problem hiding this comment.
--directory shouldn't be needed here, we need it for applying patches to repos because they were generated with the repo directory as root. It doesn't hurt anything but I think it makes it less clear here.
There was a problem hiding this comment.
In theory the working dir might not be $__scriptpath at this point though, and --directory="$__scriptpath" adds support for that, right?
There was a problem hiding this comment.
With help from @dagood , found that this was the issue with the git apply in CI. Removed the --directory option.
| @@ -0,0 +1,147 @@ | |||
| From c7dbba01272248423989a1816625dccb3e129b74 Mon Sep 17 00:00:00 2001 | |||
There was a problem hiding this comment.
This patch is unnecessary, this commit of roslyn has Sourcebuild.sln.
There was a problem hiding this comment.
Updated the sha to the commit that fixes SourceBuild.sln.
|
We will need to update the PR to pull in roslyn from dev15.7.x instead of dev/sourcebuild as we get that branch merged in. |
remove temporary sln. Remove xml updater since it isn't needed. Move patch to tools-local dir and update git apply to not use --directory.
…ft.json versions. Adding dotnet#409 to re-add this later.
…ce-build into updateRoslynFor2.1
cc @333fred, @jaredpar