Skip to content

Commit

Permalink
merging main
Browse files Browse the repository at this point in the history
  • Loading branch information
ishandhanani committed May 17, 2024
2 parents d65d89e + 13c8398 commit 8fa9d02
Show file tree
Hide file tree
Showing 41 changed files with 351 additions and 145 deletions.
4 changes: 2 additions & 2 deletions .brev/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ append_if_not_exist ". \$HOME/.asdf/asdf.sh" ~/.zshrc

# golang
asdf plugin add golang https://github.com/asdf-community/asdf-golang.git
asdf install golang 1.20
asdf global golang 1.20
asdf install golang 1.21.8
asdf global golang 1.21.8
asdf install
GO_VERSION=$(asdf current golang | awk '{print $2}')
GO_ROOT=$HOME/.asdf/installs/golang/$GO_VERSION/go
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20
FROM golang:1.21

# [Option] Install zsh
ARG INSTALL_ZSH="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ChangePwd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_NoProjectBrev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_NoUserBrevNoProj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_NoUserBrevProj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ProjectRepoNoBrev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ProvidedSetupFileChange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ProvidedSetupRanNoProj.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_ProvidedSetupUpdated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_UnauthenticatedSSHKey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_UserBrevProjectBrevV0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_UserBrevProjectBrevV1All.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_UserBrevProjectBrevV1Minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_VscodeExtension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test_httpGit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true

- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true


Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: Build
run: make ci
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: Release test
run: make build
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: install
run: make install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: Release
run: make ci smoke-test release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: install
run: make install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: install
run: make install
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
golang 1.20
golang 1.21.8
2 changes: 1 addition & 1 deletion bin/gen-e2e-actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def generate_file_content(test_name):
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.20'
go-version: '1.21'
cache: true
- name: expire test cache
run: go clean -testcache
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/brevdev/brev-cli

go 1.20
go 1.21

require (
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137
Expand Down
5 changes: 5 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9
cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8=
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=
github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24=
github.com/Azure/go-autorest/autorest v0.11.18/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA=
github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M=
Expand Down Expand Up @@ -172,6 +173,7 @@ github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYF
github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k=
github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE=
github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI=
Expand Down Expand Up @@ -486,6 +488,7 @@ github.com/pelletier/go-toml/v2 v2.0.5/go.mod h1:OMHamSCAODeSsVrwwvcJOaoN0LIUIaF
github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI=
github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU=
github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4=
github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8=
github.com/pjbgf/sha1cd v0.2.3 h1:uKQP/7QOzNtKYH7UTohZLcjF5/55EnTw0jO/Ru4jZwI=
github.com/pjbgf/sha1cd v0.2.3/go.mod h1:HOK9QrgzdHpbc2Kzip0Q1yi3M2MFGPADtR6HjG65m5M=
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU=
Expand Down Expand Up @@ -573,6 +576,7 @@ github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69
github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs=
github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0=
github.com/thoas/go-funk v0.9.1 h1:O549iLZqPpTUQ10ykd26sZhzD+rmR5pWhuElrhbC20M=
github.com/thoas/go-funk v0.9.1/go.mod h1:+IWnUfUmFO1+WVYQWQtIJHeRRdaIyyYglZN7xzUPe4Q=
github.com/tidwall/gjson v1.14.0 h1:6aeJ0bzojgWLa82gDQHcx3S0Lr/O51I9bJ5nv6JFx5w=
github.com/tidwall/gjson v1.14.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
Expand Down Expand Up @@ -905,6 +909,7 @@ golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8T
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df h1:5Pf6pFKu98ODmgnpvkJ3kFUOQGGLIzLIkbzUHp47618=
golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8=
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
Expand Down
1 change: 0 additions & 1 deletion pkg/cmd/envsetup/envsetup.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@ logs:
stringToAppend := fmt.Sprintf("\nlogs_enabled: true\nhostname: %s\n", hostname)
// add logs_enabled: true to /etc/datadog-agent/datadog.yaml
err = e.store.AppendString("/etc/datadog-agent/datadog.yaml", stringToAppend)

if err != nil {
return breverrors.WrapAndTrace(err)
}
Expand Down
Loading

0 comments on commit 8fa9d02

Please sign in to comment.