Skip to content
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

64 bit single exe of git-credential-manager.exe for windows nano server #1788

Open
zippy1981 opened this issue Dec 10, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@zippy1981
Copy link

Feature description

I am attempting to build a windows nano server container for development inside of. Nano server is an ultra striped down windows container. It only supports 64 bit executables and does not come with powershell or any version of .NET by default.

I can clone a public github repo. I have gotten github credential manager.exe to run inside it. I would like you to publish a self contained 64 bit executable on the release page so I can grab this during container builds. Building one just works with the following commands:

dotnet publish -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true -f net8.0 /p:PlatformTarget=x64 ./src/shared/Git-Credential-Manager/Git-Credential-Manager.csproj

Then you can just copy it in a COPY stage or use docker cp on a stopped container. Unfortunately you need to stop a windows container for docker cp to work.

The exe this builds works:

image

I was also able to login with a device login using git-credential-manager github login --no-ui. However, attempting to clone a private repo returns fatal: could not read Username for 'https://github.com': No such file or directory. Its possible this is because I am using minigit. I can investigate that some more.

The point is, a 64 bit executable is necessary for this use case, and building one just works. I can look into modifying the CI/CD chain to add this to releases and submit a PR if this is agreeable.

@zippy1981 zippy1981 added the enhancement New feature or request label Dec 10, 2024
@Neustradamus
Copy link

I am interrested by a x64 version too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants