diff --git a/README.md b/README.md index a35319eda3..fced3cb9d7 100644 --- a/README.md +++ b/README.md @@ -1185,6 +1185,7 @@ $ scw inspect myserver | jq '.[0].public_ip.address' * Use `SCW_SECURE_EXEC` instead of `exec_exec` * Remove `scaleway_api_endpoint` environment variable +* brew remove cache after install * `scw login` don't ask to upload ssh key when there is no keys View full [commits list](https://github.com/scaleway/scaleway-cli/compare/v1.8.0...master) diff --git a/contrib/homebrew/scw.rb b/contrib/homebrew/scw.rb index 1a2727c519..a1d9421838 100644 --- a/contrib/homebrew/scw.rb +++ b/contrib/homebrew/scw.rb @@ -18,6 +18,9 @@ def install (buildpath/"src/github.com/scaleway/scaleway-cli").install Dir["*"] system "go", "build", "-o", "#{bin}/scw", "-v", "-ldflags", "-X github.com/scaleway/scaleway-cli/pkg/scwversion.GITCOMMIT=homebrew", "github.com/scaleway/scaleway-cli/cmd/scw/" + # we remove our .scw-cache.db file, to clean the cache of scw + # this file is created and handled by scw + system "rm", "-f", "~/.scw-cache.db" bash_completion.install "src/github.com/scaleway/scaleway-cli/contrib/completion/bash/scw" zsh_completion.install "src/github.com/scaleway/scaleway-cli/contrib/completion/zsh/_scw"