Skip to content
Merged

Brew #311

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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions contrib/homebrew/scw.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a comment, so the homebrew team won't be afraid by this addition :)


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"
Expand Down