-
Notifications
You must be signed in to change notification settings - Fork 241
In init-tools.sh, lenient casing for restored packages #1114
Conversation
Uses find to allow compatibility with CLI versions that have the NuGet change to lowercase package ids in the packages directory.
I don't understand how the package name got lower-cased. |
It's a breaking NuGet change that we're exposed to through |
Ping--this is needed to restore buildtools with a CLI version past the NuGet breaking change. |
I'm not super familiar with 'find'. Does this change the behavior? ie, is this going to hide not finding those packages if they don't exist? |
Good point, if something happens that lets the restore pass but the packages aren't there, this won't report an error. Also, if multiple copies of the same package are in the packages dir with different directory casing it would also copy each one's contents. Those are the only differences I'm aware of. Are we currently relying on |
I'd expect us to not see an issue with the multiple packages because it would be differently cased packages, but with the same version; and that seems unlikely. Also, I guess it's not too concerning if the directories aren't present because i'd generally expect that to manifest as an issue during the previous "package restore" step. I guess there are cases where the package restore step doesn't catch things though. LGTM |
Agreed, unlikely, but with some potential cases. Filed #1162 to track maybe fixing that, although I wonder if we'll be able to replace that copy with something better at some point. Merging, thanks. |
This is breaking some xplat builds when tools are initialized: chcosta/dotnetcore:fedora23_prereqs corefx build
chcosta/dotnetcore:alpine_prereqs corefx build
It looks like In the meantime, @ericstj plans to make the init-tools copy and msbuild import conditional. (#1200) |
Uses
find
to allow compatibility with CLI versions that have the NuGet change that lowercases package ids in the packages directory.This should fix the buildtools side of #1111.
Tested on OSX and openSUSE 13.2 with dotnet/coreclr@master...dagood:init-tools-insensitive.
@janvorli @chcosta @mellinoe @ericstj
/cc @weshaggard @gkhanna79