-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use go modules for dependencies (#43)
* Use go modules for dependencies * PR feedback: put back include in Makefile It is necessary for travis because it uses Makefile targets in build-harness * PR Feedback: Fix .travis.yml Since make targets are based on go modules, travis.yml definition needs to change appropriately to no longer use godep and glide.
- Loading branch information
Showing
6 changed files
with
422 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
SHELL = /bin/bash | ||
|
||
PATH:=$(PATH):$(GOPATH)/bin | ||
|
||
include $(shell curl --silent -o .build-harness "https://raw.githubusercontent.com/cloudposse/build-harness/master/templates/Makefile.build-harness"; echo .build-harness) | ||
|
||
.PHONY : go-build | ||
go-build: | ||
CGO_ENABLED=0 go build -v -o "./dist/bin/prometheus-to-cloudwatch" *.go | ||
|
||
## Lint code | ||
lint: $(GO) vet | ||
$(call assert-set,GO) | ||
find . ! -path "*/vendor/*" ! -path "*/.glide/*" -type f -name '*.go' | xargs -n 1 golint | ||
|
||
.PHONY : go-get | ||
go-get: | ||
go get | ||
## Vet code | ||
vet: $(GO) | ||
$(call assert-set,GO) | ||
find . ! -path "*/vendor/*" ! -path "*/.glide/*" -type f -name '*.go' | xargs $(GO) vet -v | ||
|
||
|
||
.PHONY : go-build | ||
go-build: go-get | ||
CGO_ENABLED=0 go build -v -o "./dist/bin/prometheus-to-cloudwatch" *.go |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module github.com/cloudposse/prometheus-to-cloudwatch | ||
|
||
go 1.14 | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go v1.35.21 // indirect | ||
github.com/gobwas/glob v0.2.3 // indirect | ||
github.com/prometheus/common v0.14.0 // indirect | ||
) |
Oops, something went wrong.