-
Notifications
You must be signed in to change notification settings - Fork 18
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
gs
conflicts with existing command (ghostscript)
#469
Comments
yes, for me as well. Would be great to be able to create a git subcommand for spice as git absorb doing it. |
Hey folks, thanks for creating the issue. I understand that the ghostscript conflict is inconvenient. I'm willing to amend the installation instructions with a warning and a workaround for ghostscript users, but I have a strong preference for keeping the current name. Renaming is not an option I'm currently open to. The current name and direct invocation (as opposed to a git subcommand) better matches the user experience I want from this tool. RE: fixing completions with |
If the command is renamed, don't use "gs" as the name in help or in the completion script. Use the renamed command name instead. e.g. ``` ❯ make bin/gs ❯ mv bin/gs gsp ❯ ./gsp shell completion bash complete -C /.../src/git-spice/gsp gsp ``` Refs #469
If the command is renamed, don't use "gs" as the name in help or in the completion script. Use the renamed command name instead. e.g. ``` ❯ make bin/gs ❯ mv bin/gs gsp ❯ ./gsp shell completion bash complete -C /.../src/git-spice/gsp gsp ``` Refs #469
That's a shame, because it works fine as a git subcommand as well ( In terms of a workaround, could you lean on homebrew options to provide a |
I considered that, and I don't know how strict the policy is, but per that section of the Formula Cookbook:
Feel free to try anyway if you're up for it; if they accept the PR, I have no opposition to an install-time flag for this. |
Is the intent for this to find its way to homebrew-core then? I thought this was still your tap at https://github.com/abhinav/homebrew-tap/blob/main/git-spice.rb (happy to submit a PR, just wondering where)? |
Oh, I thought you were talking about the existing homebrew-core formula. For my Homebrew tap: goreleaser generates and pushes that formula. Goreleaser doesn't seem to have a means of adding options, but, it supports publishing multiple formulas. So, I guess we have two options:
I'm open to either/both. |
Ah, lightbulb moment! I strongly suspect that the homebrew maintainers mean it about options in homebrew-core, which means that the other path of an alternative formula is the more likely solution. I have no idea how to go about that, and I completely understand if you don't have the bandwidth to do it yourself. |
I completely understand! Lines 58 to 72 in a72ce6e
That's the Homebrew tap configuration for git-spice. |
When installing using homebrew, I get a conflict because I have ghostscript (which has been known as
gs
for a very long time). Would it be possible to choose a different name? I've worked around this by symlinking the binary as git-spice into my~/bin
(and changing the completions using:...), but I imagine it will hit other people.
The text was updated successfully, but these errors were encountered: