Installer aborts on an existing same-named `slack` binary; prefer install + warning over hard abort
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start with install.sh and trace the existing slack PATH check through the installation flow. Reproduce the collision with an unrelated slack executable, then verify that installation continues, the binary and symlink are placed as usual, and a warning retains the alias guidance.
Written by the indexing model from the issue text.
Description
What happens
install.sh refuses to install if any slack already exists on PATH. On a machine where the slack-ruby-client gem provides a slack executable (an rbenv shim at ~/.rbenv/shims/slack), the installer aborts:
🛑 Error: Your existing `slack` command is different from this Slack CLI!
🔖 Try using an alias when installing to avoid name conflicts:
curl -fsSL https://downloads.slack-edge.com/slack-cli/install.sh | bash -s your-preferred-alias
Repro
- Have an unrelated
slackon PATH. Concrete case:gem install slack-ruby-client(ships aslackexecutable; under rbenv it becomes~/.rbenv/shims/slack). curl -fsSL https://downloads.slack-edge.com/slack-cli/install.sh | bash- Installer aborts instead of installing.
Why this is unhelpful
Aborting on a same-named binary is non-standard. It forced installing under an alias (| bash -s slack-cli), then manually symlinking it back to slack and reordering PATH, because rbenv shims sit ahead of ~/.local/bin, so even after installing, the CLI stayed shadowed by the gem's slack. Every other CLI installer I use just installs the binary and leaves PATH precedence to me.
Suggestion
Install regardless: place the binary + symlink as usual, and print a warning about the name collision (keep the alias tip there), instead of hard-aborting. Let the user manage their own PATH.
Env
macOS arm64, Slack CLI v4.7.0, zsh + rbenv, slack-ruby-client 2.6.0
- Dominant language
- Go
- Stars
- 305
- Forks
- 46
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 23
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from slackapi/slack-cli
-
bug build release
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
area:bolt-python bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
build code health
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
enhancement semver:minor
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
code health
Difficulty 3/5 1-2 days Newbie friendliness 45/100
All issues in slackapi/slack-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·