-
Notifications
You must be signed in to change notification settings - Fork 253
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
plugins_cache needs shorter path to work well #7770
Comments
The cache not being discovered should be handled more gracefully. It should not be failing restore completely. This could go multiple ways, but the goal should be to make the whole thing more robust. //cc @rrelyea |
i would like to think if this is being run on win10 box opting into longpaths support from windows (which we support elsewhere in our codebase), that it would work well. yes, if somebody hadn't opted in, and the longpath causes a failure, having a good error with options for user would be great. NUXXXX? |
@zarenner Are long paths enabled on the average build machine? |
I have no idea for our hosted agents. @chrisrpatterson? |
All of the hosted machines are Win 2016 or older right now. For the Visual Studio 2019 images we will be rolling out machines with Win 2019 as the os. |
In microsoft/azure-pipelines-tasks#9446, @maboulianne, @OneCyrus, and @sveinungf all reported an issue with NuGet that appears likely to be due to plugin_cache path lengths being too long (260+ characters).
Please see that issue for the full context, but the relevant part:
I see that there are already generally related GitHub issues such as #3324.
However, this specific issue is especially bad since the "DirectoryNotFoundException: Could not find a part of the path" doesn't hint at the path length being the issue. That's more a .NET issue than a NuGet issue IMO, but it's still a confusing experience for our customers. It's also more likely here to exceed 260 characters here since the plugin_cache paths contain essentially the entire URL, the plugin filename, etc and thus are long.
Even if NuGet cannot support long paths, could it at least emit a better error message here indicating the issue?
The text was updated successfully, but these errors were encountered: