Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/update/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/spf13/cobra"
)

const metadataURL = "https://api.slack.com/slackcli/metadata.json"
const metadataURL = "https://docs.slack.dev/tools/metadata.json"

// CLIDependency contains information about the
// current version and the latest CLI release version
Expand Down
2 changes: 1 addition & 1 deletion internal/update/cli_metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (m *HTTPClientMock) Do(req *http.Request) (*http.Response, error) {

// Test_CLI_Metadata_CheckForUpdate tests different responses from Slack CLI metadata.
func Test_CLI_Metadata_CheckForUpdate(t *testing.T) {
const metadataURL = "https://api.slack.com/slackcli/metadata.json"
const metadataURL = "https://docs.slack.dev/tools/metadata.json"

scenarios := map[string]struct {
CurrentVersion string
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-windows-dev.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function install_slack_cli {
}
else {
Write-Host "Finding the latest Slack CLI release version"
$cli_info = Invoke-RestMethod -Uri "https://api.slack.com/slackcli/metadata.json"
$cli_info = Invoke-RestMethod -Uri "https://docs.slack.dev/tools/metadata.json"
$SLACK_CLI_VERSION = $cli_info.'slack-cli'.releases.version[0]
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function install_slack_cli {
}
else {
Write-Host "Finding the latest Slack CLI release version"
$cli_info = Invoke-RestMethod -Uri "https://api.slack.com/slackcli/metadata.json"
$cli_info = Invoke-RestMethod -Uri "https://docs.slack.dev/tools/metadata.json"
$SLACK_CLI_VERSION = $cli_info.'slack-cli'.releases.version[0]
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ install_slack_cli() {
# Using grep and sed to parse the semver (excluding "v" to ensure consistence of binaries' filenames ) instead of jq to avoid extra dependencies requirement
#
echo -e "🔍 Searching for the latest version of the Slack CLI..."
LATEST_SLACK_CLI_VERSION=$(curl --silent "https://api.slack.com/slackcli/metadata.json" | grep -o '"version": "[^"]*' | grep -o '[^"]*$' | head -1)
LATEST_SLACK_CLI_VERSION=$(curl --silent "https://docs.slack.dev/tools/metadata.json" | grep -o '"version": "[^"]*' | grep -o '[^"]*$' | head -1)
if [ -z "$LATEST_SLACK_CLI_VERSION" ]; then
echo "🛑 Error: Installer cannot find the latest Slack CLI version!"
echo "🔖 Check the status of https://slack-status.com/ and try again"
Expand Down
Loading