-
Notifications
You must be signed in to change notification settings - Fork 347
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
Permit defining native tools installation / OS #2673
Comments
Why not just move away from defining native tools in the global.json file as that approach is not flexible at all. The native tools bootstrapping is already part of the restore phase of arcade. Why not define them as an ItemGroup in Tools.props instead? (or a NativeTools.props) There we can easily set msbuild conditions based on the OS. |
* Update dependencies from https://github.com/dotnet/arcade build 20190522.13 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19272.13 - Microsoft.DotNet.Build.Tasks.Feed - 2.2.0-beta.19272.13 - Microsoft.DotNet.Build.Tasks.Packaging - 1.0.0-beta.19272.13 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19272.13 * Update Unix permissions * Set the versions same way as CoreFX repo * Fix the product branding version * Delete .NET Framework reference assemblies reference * Workaround for dotnet/arcade#2673
@chcosta We are hitting this again in CoreCLR. This causes hangs when we perform a restore, and the environment variable is not the best workaround right now as we use the restore flag all over the place. We've also hit it in some dev machines - particularly OSX. Do we have any recommendations here? Is it possible to go back to not restore by default? Other people complained that these are getting installed into their user directories during inner loop, even though a perfectly functional version was already in the the path. Disabling with the environment var is a workaround and so is skipping the installation by default. We still need to dig in why this hangs - even if we decide to go the msbuild route. On CI this gets our packaging step from under a min to a timeout after more than 40 mins. |
+1. I gave the same feedback on the early design for dealing with native dependencies. From #64 (comment) : But please do not download gigabytes of stuff for me by default when I have them in my Visual Studio installation already. Maybe not the exact version, but that's fine. |
Sounds like a severe issue with a big impact. I'm fine making it an opt-in then.
+1 |
Ack, I understand the pain here. Only thing to be aware of is https://github.com/dotnet/arcade/blob/51079d2f2412aa4923f9f2a4f78067f1045fbe8c/Documentation/Policy/ArcadeCommunications.md#types-of-engineering-services-change-communication. ie, we need to communicate any breaking changes with our partners. |
Did something change to exacerbate this issue or has this been causing problems for the past month? |
I see. Makes sense, sorry for the pain! Let's continue to push to get this sorted. Likely it's going to take a few days. :( |
* Update dependencies from https://github.com/dotnet/arcade build 20190529.5 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19279.5 - Microsoft.DotNet.Build.Tasks.Feed - 2.2.0-beta.19279.5 - Microsoft.DotNet.Build.Tasks.Packaging - 1.0.0-beta.19279.5 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19279.5 * Work around dotnet/arcade#2673
I think this is largely encompassed by @MattGal's epic This should be added - #4482 And we need to create an issue to track the "don't install more than you need to" request. @MattGal , are you driving this? Do you have a list of repos that are using tools bootstrapping today? So we know which repos to talk to that aren't using bootstrapping and have reasons. |
That epic is not funded, it only has @MattGal's name because it's an issue he opened that got turned into an epic. There's no one driving that space right now. The ask is for us to do the things you asked about 😃 |
Cool, I guess I missed the part that this wasn't funded. |
I'll reach out to folks |
dotnet/runtime uses native toolset bootstrapping partially but would like to use it through the bank to not depend on machine agent configurations like installed cmake versions. Please loop me into relevant discussions. |
Snippet from @dougbu to better explain his thinking. "native-tools": {
"cmake": {
"version": "3.11.1",
"platform": "win"
}
} |
* Update dependencies from https://github.com/dotnet/arcade build 20190522.13 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19272.13 - Microsoft.DotNet.Build.Tasks.Feed - 2.2.0-beta.19272.13 - Microsoft.DotNet.Build.Tasks.Packaging - 1.0.0-beta.19272.13 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19272.13 * Update Unix permissions * Set the versions same way as CoreFX repo * Fix the product branding version * Delete .NET Framework reference assemblies reference * Workaround for dotnet/arcade#2673 Commit migrated from dotnet/coreclr@d3b5e99
Is this issue still relevant with the new world where bootstrapping dependencies in anything other than hosted mac machines is frowned upon? @MattGal @jonfortescue |
It is not. Closing. |
Currently, if you define a native tool in global.json, it attempts to install on every OS (Windows / Linux). Many teams, just want native tools to be installed on Windows, but use Docker to provide native toolset dependencies on Linux. We need some method to specify appropriate OS' or to disable native toolset installation when running.
FYI @tmat, @ViktorHofer , @natemcmaster , @adiaaida
The text was updated successfully, but these errors were encountered: