Skip to content

Commit

Permalink
chore: updated Makefile, upgraded packages as suggested by Dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
dtchanpura committed Feb 24, 2023
1 parent edb69f9 commit ca21e6f
Show file tree
Hide file tree
Showing 3 changed files with 376 additions and 227 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ PLATFORMS := windows linux darwin
os = $(word 1, $@)

bootstrap:
go get -u golang.org/x/lint/golint # Linter
go get -u honnef.co/go/tools/cmd/staticcheck # Badass static analyzer/linter
# go get honnef.co/go/tools/cmd/megacheck # Badass static analyzer/linter
go get -u github.com/fzipp/gocyclo # Cyclomatic complexity check
go install golang.org/x/lint/golint@latest # Linter
go install honnef.co/go/tools/cmd/staticcheck@latest # Badass static analyzer/linter
# go install honnef.co/go/tools/cmd/megacheck@latest # Badass static analyzer/linter
go install github.com/fzipp/gocyclo/cmd/gocyclo@latest # Cyclomatic complexity check
go mod download

test:
Expand All @@ -27,6 +27,8 @@ $(PLATFORMS):
mkdir -p release
GOOS=$(os) GOARCH=amd64 go build -o release/$(BINARY) -ldflags="$(LDFLAGS)"
tar -czvf release/$(BINARY)-$(VERSION)-$(os)-amd64.tar.gz README.md -C release/ $(BINARY)
GOOS=$(os) GOARCH=arm64 go build -o release/$(BINARY) -ldflags="$(LDFLAGS)"
tar -czvf release/$(BINARY)-$(VERSION)-$(os)-arm64.tar.gz README.md -C release/ $(BINARY)

.PHONY: release
release: windows linux darwin
Expand Down
37 changes: 24 additions & 13 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
module github.com/dtchanpura/deployment-agent

go 1.12
go 1.18

require (
github.com/fsnotify/fsnotify v1.4.9
github.com/google/uuid v1.1.1
github.com/fsnotify/fsnotify v1.6.0
github.com/google/uuid v1.3.0
github.com/mitchellh/go-homedir v1.1.0
github.com/mitchellh/mapstructure v1.3.3 // indirect
github.com/pelletier/go-toml v1.8.0 // indirect
github.com/rs/zerolog v1.19.0
github.com/spf13/afero v1.3.4 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/spf13/cobra v1.0.0
github.com/rs/zerolog v1.29.0
github.com/spf13/cobra v1.6.1
github.com/spf13/viper v1.15.0
gopkg.in/yaml.v2 v2.4.0
)

require (
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
github.com/spf13/afero v1.9.4 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.7.1
golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed // indirect
gopkg.in/ini.v1 v1.58.0 // indirect
gopkg.in/yaml.v2 v2.3.0
github.com/subosito/gotenv v1.4.2 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit ca21e6f

Please sign in to comment.