-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Templating workflows broken for p 8000 aths with special characters on MacOS since SDK 9.0.200 #48794
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
Comments
This is intended behavior. Per #45422, we added support for package@version syntax for dotnet new install. (We've been working to have a clean/consistent CLI, and this is one part of that.) We probably should've included it in our release notes as a breaking change; my apologies for not doing that. Is there a reason you need an @ symbol in your path, or did you just notice it? |
@Forgind We don't necessarily control the path in question. Here, we're dealing with HomeBrew defaults from a user machine. I appreciate the desire for consistency and all, but we're left in a position where the Azure Functions end-to-end for .NET is broken on MacOS. Are there any workarounds available in terms of knobs we could turn for the templating engine, etc.? |
@Forgind this is not intended behavior for file-path-based template installations. We should only be doing the For the template engine specifically we need to separately handle this case - this is a bug/regression and is often used by our own teams when testing templates. |
Describe the bug
Starting with .NET 9 SDK 9.0.200,
dotnet new install
seems to be treating paths differently on MacOS such that the command no longer operates as expected. The user gets an error that the package (the name of which has been normalized) is not supported.This led to an issue with the Azure Functions Core Tools, which uses
dotnet new
behind the scenes. That issue is here for reference: Azure/azure-functions-core-tools#4399The exact same gestures work fine with SDK 9.0.102.
To Reproduce
@
character:a.
mkdir repro@4
a.
dotnet new console
b.
dotnet add package Microsoft.Azure.Functions.Worker.ProjectTemplates -v 4.0.5086 --package-directory ./repro@4
dotnet new install
using the absolute path to it:a.
dotnet new install ./repro@4/microsoft.azure.functions.worker.projecttemplates/4.0.5086/microsoft.azure.functions.worker.projecttemplates.4.0.5086.nupkg
The Azure Functions Core Tools issue referenced above provides an alternative set of repro steps, in context. That issue is unfortunately compounded by that tool swallowing the error from
dotnet new install
, but the notes there may be helpful as well.Exceptions (if any)
Further technical details
dotnet --info
The text was updated successfully, but these errors were encountered: