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.

Signed-off-by: Hendrik Bruinsma <hbruinsma@xs4some.nl>
Comment on lines +39 to +43
(staged_path/"git-credential-manager").write <<~EOS
#!/bin/sh
dir="$(dirname "$(realpath "$0")")"
LD_LIBRARY_PATH="#{HOMEBREW_PREFIX}/opt/icu4c@78/lib" exec "$dir/git-credential-manager-bin" "$@"
EOS
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.

This looks like an upstream bug. Why doesn't the binary work out of the box?

Comment on lines +30 to +31
url "https://github.com/git-ecosystem/git-credential-manager/releases/download/v#{version.major_minor_patch}/gcm-linux-#{arch}-#{version.major_minor_patch}.tar.gz",
verified: "github.com/git-ecosystem/git-credential-manager/"
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.

Why not keep this shared and use #{os} and on_system_block?

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.

3 participants