Skip to content

Commit ae75f89

Browse files
committed
Merge pull request #311 from QuentinPerez/brew
Brew
2 parents 6fc6ea8 + 3aa9a53 commit ae75f89

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ $ scw inspect myserver | jq '.[0].public_ip.address'
11851185

11861186
* Use `SCW_SECURE_EXEC` instead of `exec_exec`
11871187
* Remove `scaleway_api_endpoint` environment variable
1188+
* brew remove cache after install
11881189
* `scw login` don't ask to upload ssh key when there is no keys
11891190

11901191
View full [commits list](https://github.com/scaleway/scaleway-cli/compare/v1.8.0...master)

contrib/homebrew/scw.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ def install
1818
(buildpath/"src/github.com/scaleway/scaleway-cli").install Dir["*"]
1919

2020
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/"
21+
# we remove our .scw-cache.db file, to clean the cache of scw
22+
# this file is created and handled by scw
23+
system "rm", "-f", "~/.scw-cache.db"
2124

2225
bash_completion.install "src/github.com/scaleway/scaleway-cli/contrib/completion/bash/scw"
2326
zsh_completion.install "src/github.com/scaleway/scaleway-cli/contrib/completion/zsh/_scw"

0 commit comments

Comments
 (0)