-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
bugM-T: confirmed bug report. Issues are confirmed when the reproduction steps are documentedM-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
Description
Description
On line 109 of the Windows .ps1 installer, when it sets the SLACK_CLI_VERSION variable, it indexes the version by zero which causes it to not take only the major version, which when it tries to download the Slack CLI it fails to retrieve the .zip file as the website returns a 403
Version
Please paste the output from:
PS> slack --version
4.47.69OS Info
Please paste the output from:
CMD> ver
Microsoft Windows [Version 10.0.26220.7344]
Steps to reproduce:
Share the commands to run, source code, and project settings:
- PS C:\Users\perkinsal> irm https://downloads.slack-edge.com/slack-cli/install-windows.ps1 | iex
Expected result:
(This uses a patched version of the script)
PS> .\install-slack.ps1 -Alias slack-cli
Hello and welcome! Now beginning to install the...
________ _ _ _____ _ __ _____ _ ________
/ ______/ | / \ / ____/ | / / / ____/ | /___ __/
/______ | | / _ \ | | / | | | | | |
____ / | |___ __ \ |____ |\ \ | |____ |__ _| |___
/_______ /|______/ \_\ ____/_| \__\ _____/______/_____/
Finding the latest Slack CLI release version
Downloading Slack CLI v3.10.0...
Extracting the executable to:
C:\Users\perkinsal\AppData\Local\slack-cli\bin\slack-cli.exe
Adding `slack-cli.exe` to your Path environment variable
Adding developer tooling for an enhanced experience...
Skipping the check for a Git installation!
Sweet! You're all set to start developing!
Use of the Slack CLI should comply with the Slack API Terms of Service:
https://slack.com/terms-of-service/api
We would love to know how things are going. Really. All of it.
Survey your development experience with `slack-cli feedback`
You're all set! Relaunch your terminal to ensure changes take effect.
Then, authorize your CLI in your workspace with `slack-cli login`.
Actual result:
PS> irm https://downloads.slack-edge.com/slack-cli/install-windows.ps1 | iex
Hello and welcome! Now beginning to install the...
________ _ _ _____ _ __ _____ _ ________
/ ______/ | / \ / ____/ | / / / ____/ | /___ __/
/______ | | / _ \ | | / | | | | | |
____ / | |___ __ \ |____ |\ \ | |____ |__ _| |___
/_______ /|______/ \_\ ____/_| \__\ _____/______/_____/
Finding the latest Slack CLI release version
Downloading Slack CLI v3...
install_slack_cli:
Line |
257 | install_slack_cli $Alias $Version
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Installer cannot download Slack CLI
We would love to know how things are going. Really. All of it.
Submit installation issues: https://github.com/slackapi/slack-cli/issuesRequirements
- I've read and understood the Contributing guidelines and have done my best effort to follow them.
- I've read and agree to the Code of Conduct.
- I've searched for any related issues and avoided creating a duplicate issue.
zimegzimeg
Metadata
Metadata
Assignees
Labels
bugM-T: confirmed bug report. Issues are confirmed when the reproduction steps are documentedM-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented