Skip to content

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

@zippy1981

Description

@zippy1981

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions