From 45fff7918a77641fe2cb5aafff328e6b80069ca4 Mon Sep 17 00:00:00 2001 From: Quentin Brosse Date: Wed, 6 Feb 2019 12:43:27 +0100 Subject: [PATCH 1/2] add idea to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index d489da97af..4bed1806cb 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ profile.out .DS_STORE .vendor /.vscode +/.idea # Vim Swapfiles [._]*.s[a-v][a-z] From 201a512ee4c78e85accd09997387292bccecc8db Mon Sep 17 00:00:00 2001 From: Quentin Brosse Date: Wed, 6 Feb 2019 12:45:58 +0100 Subject: [PATCH 2/2] update version URL --- MAINTAINERS.md | 4 ++-- pkg/cli/main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS.md b/MAINTAINERS.md index ce6e414708..1bc8398819 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -50,7 +50,7 @@ There is a Archlinux community package (aka. "AUR" — Archlinux User Repositor ### Update VERSION file -From time to time, scaleway-cli makes a HTTP query to https://fr-1.storage.online.net/scaleway/scaleway-cli/VERSION to check if it is at the latest version available. This file needs to be updated. +From time to time, scaleway-cli makes a HTTP query to `https://scw-devtools.s3.nl-ams.scw.cloud/scw-cli-version` to check if it is at the latest version available. This file needs to be updated. **PLEASE WAIT UNTIL THE HOMEBREW PULL REQUEST IS ACCEPTED BEFORE UPDATING THE VERSION FILE.** @@ -59,7 +59,7 @@ From time to time, scaleway-cli makes a HTTP query to https://fr-1.storage.onlin $> echo '42.8' > VERSION $> s3cmd put VERSION s3://scaleway/scaleway-cli/VERSION --acl-public # Ensure it's at the latest version -$> curl https://fr-1.storage.online.net/scaleway/scaleway-cli/VERSION +$> curl https://scw-devtools.s3.nl-ams.scw.cloud/scw-cli-version # Should display "42.8". ``` diff --git a/pkg/cli/main.go b/pkg/cli/main.go index c90299497c..0f8a368eec 100644 --- a/pkg/cli/main.go +++ b/pkg/cli/main.go @@ -200,7 +200,7 @@ func checkVersion() { req := http.Client{ Timeout: 1 * time.Second, } - resp, err := req.Get("https://fr-1.storage.online.net/scaleway/scaleway-cli/VERSION") + resp, err := req.Get("https://scw-devtools.s3.nl-ams.scw.cloud/scw-cli-version") if resp != nil { defer resp.Body.Close() }