Skip to content

Commit

Permalink
Merge pull request #1 from FundingCircle/dep-ensure
Browse files Browse the repository at this point in the history
Adds dep package management
  • Loading branch information
willchertoff authored Jul 17, 2019
2 parents 53f705a + 7099e28 commit 1e2bedb
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
release
vendor
58 changes: 58 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
name = "github.com/aws/aws-sdk-go"
version = "1.20.20"

[prune]
go-tests = true
unused-packages = true
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ PLATFORMS := linux darwin

os = $(word 1, $@)

.PHONY: deps
deps:
dep ensure

.PHONY: $(PLATFORMS)
$(PLATFORMS):
$(PLATFORMS): deps
mkdir -p release
GOOS=$(os) GOARCH=amd64 go build -o release/$(BINARY)-$(VERSION)-$(os)-amd64
sha256sum release/$(BINARY)-$(VERSION)-$(os)-amd64 > release/checksum-$(VERSION)-$(os).txt
Expand Down

0 comments on commit 1e2bedb

Please sign in to comment.