git-ecosystem/git-credential-manager

git-credential-manager installed as a .NET tool is targeting out-of-support .NET 7

Closed this issue · 1 comments

Feature description

I installed git-credential-manager as a dotnet tool in Ubuntu 22.04, but I cannot use it because it depends on .NET 7, which I do not have installed since it's out of support:

$ uname -a
Linux chayotebox 6.8.0-45-generic #45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Sep 11 15:25:05 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

$ dotnet --list-sdks
6.0.425 [/usr/share/dotnet/sdk]
8.0.402 [/usr/share/dotnet/sdk]

$ dotnet tool install -g git-credential-manager
You can invoke the tool using the following command: git-credential-manager
Tool 'git-credential-manager' (version '2.4.1') was successfully installed.

$ git-credential-manager configure
You must install or update .NET to run this application.

App: /home/carlos/.dotnet/tools/git-credential-manager
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '7.0.13' (x64)
.NET location: /usr/lib/dotnet

The following frameworks were found:
  6.0.33 at [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=7.0.13&arch=x64&rid=ubuntu.22.04-x64

If dotnet tool installed the git-credential-manager's DLL as well, I would've been able to workaround this by running dotnet git-credential-manager.dll --roll-forward but dotnet tool only installed the binary.

GCM 2.6 which targets .NET 8 has just been released on nuget.org.

https://www.nuget.org/packages/git-credential-manager/2.6.0