Skip to content

git-credential-manager add linux support#259989

Open
readefries wants to merge 1 commit intoHomebrew:mainfrom
readefries:feat/add-linux-support-to-cask
Open

git-credential-manager add linux support#259989
readefries wants to merge 1 commit intoHomebrew:mainfrom
readefries:feat/add-linux-support-to-cask

Conversation

@readefries
Copy link
Copy Markdown


After making any changes to a cask, existing or new, verify:

Additionally, if adding a new cask:

  • Named the cask according to the token reference.
  • Checked the cask was not already refused (add your cask's name to the end of the search field).
  • brew audit --cask --new <cask> worked successfully.
  • HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask <cask> worked successfully.
  • brew uninstall --cask <cask> worked successfully.

  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes, including zap stanza paths.

I added references to Linux binaries for both x64 and arm64. Validated the install on my devcontainer with the Homebrew image, and verified that the installation and working of the binary was successful. I used it to verify my ideas with existing casks and help craft the changes.

Comment thread Casks/g/git-credential-manager.rb Outdated
Comment thread Casks/g/git-credential-manager.rb Outdated
@readefries readefries force-pushed the feat/add-linux-support-to-cask branch from 316ae1b to edcff68 Compare April 20, 2026 09:35
Copy link
Copy Markdown
Member

@bevanjkay bevanjkay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @readefries
You will need to run brew style --fix git-credential-manager.

@khipp khipp force-pushed the feat/add-linux-support-to-cask branch from c4d6f0f to b30eef0 Compare April 20, 2026 11:56
Comment thread Casks/g/git-credential-manager.rb Outdated
Comment on lines +43 to +45
artifact "libHarfBuzzSharp.so", target: "#{HOMEBREW_PREFIX}/lib/libHarfBuzzSharp.so"
artifact "libSkiaSharp.so", target: "#{HOMEBREW_PREFIX}/lib/libSkiaSharp.so"
end
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean it conflicts with the formula? Would it work if we depend on those instead?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what you mean here. Which Formula do you mean here? Those shared objects are generated by the GCM build and packaged in the tarball.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't harfbuzz an artifact of https://formulae.brew.sh/formula/harfbuzz#default?

Copy link
Copy Markdown
Member

@cho-m cho-m Apr 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those shouldn't be exposed into HOMEBREW_PREFIX/lib as they are C# dependencies only intended for GCM to see.

Based on upstream tarball and .deb, GCM should be able to find those from within its installed path. If it can't, then should be an upstream bug.

EDIT: In case unaware, all files in tarball are installed into Caskroom (brew --caskroom git-credential-manager). What binary does is create a symlink from there, but the real file is still in Caskroom along with shared libraries.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I get what you mean. That makes it much cleaner, and indeed just works. I'll commit these changes

@readefries readefries force-pushed the feat/add-linux-support-to-cask branch from b30eef0 to a50fac3 Compare April 20, 2026 17:33
@readefries readefries force-pushed the feat/add-linux-support-to-cask branch 2 times, most recently from de8fcc7 to 1e092a1 Compare April 20, 2026 17:50
Signed-off-by: Hendrik Bruinsma <hbruinsma@xs4some.nl>
@readefries readefries force-pushed the feat/add-linux-support-to-cask branch from 1e092a1 to b9f5806 Compare April 20, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants