Skip to content

Commit

Permalink
Add static assets using packr
Browse files Browse the repository at this point in the history
  • Loading branch information
aurpine committed Aug 12, 2019
1 parent b303954 commit ff64f6b
Show file tree
Hide file tree
Showing 5 changed files with 223 additions and 7 deletions.
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
before:
hooks:
- go mod download
- packr2

archives:
- files:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ help: ## Show this help

bin/linux/ctl: $(GOFILES_BUILD)
@echo "$@"
@GOOS=linux CGO_ENABLED=0 go build -o bin/linux/ctl github.com/wish/ctl
@GOOS=linux CGO_ENABLED=0 packr build -o bin/linux/ctl github.com/wish/ctl

bin/darwin/ctl: $(GOFILES_BUILD)
@echo "$@"
@GOOS=darwin CGO_ENABLED=0 go build -o bin/darwin/ctl github.com/wish/ctl
@GOOS=darwin CGO_ENABLED=0 packr build -o bin/darwin/ctl github.com/wish/ctl

.PHONY: all
all: bin/linux/ctl bin/darwin/ctl ## Builds ctl binaries for linux and osx
Expand Down
34 changes: 31 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,52 @@ module github.com/wish/ctl
go 1.12

require (
cloud.google.com/go v0.44.1 // indirect
github.com/Azure/go-autorest/autorest v0.2.0 // indirect
github.com/coreos/bbolt v1.3.3 // indirect
github.com/coreos/etcd v3.3.13+incompatible // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f // indirect
github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect
github.com/evanphx/json-patch v4.5.0+incompatible // indirect
github.com/fatih/color v0.0.0-20181010231311-3f9d52f7176a // indirect
github.com/go-kit/kit v0.9.0 // indirect
github.com/gobuffalo/logger v1.0.1 // indirect
github.com/gobuffalo/packr v1.30.1
github.com/gobuffalo/packr/v2 v2.5.2 // indirect
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
github.com/google/go-cmp v0.3.1 // indirect
github.com/google/pprof v0.0.0-20190723021845-34ac40c74b70 // indirect
github.com/googleapis/gnostic v0.2.0 // indirect
github.com/gophercloud/gophercloud v0.1.0 // indirect
github.com/grpc-ecosystem/grpc-gateway v1.9.5 // indirect
github.com/hashicorp/golang-lru v0.5.3 // indirect
github.com/imdario/mergo v0.3.7 // indirect
github.com/kr/pty v1.1.8 // indirect
github.com/magiconair/properties v1.8.1 // indirect
github.com/mattn/go-colorable v0.0.9 // indirect
github.com/mattn/go-isatty v0.0.7 // indirect
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect
github.com/pelletier/go-toml v1.4.0 // indirect
github.com/pkg/errors v0.8.1 // indirect
github.com/prometheus/client_golang v1.1.0 // indirect
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 // indirect
github.com/robfig/cron v1.1.0
github.com/rogpeppe/fastuuid v1.2.0 // indirect
github.com/russross/blackfriday v2.0.0+incompatible // indirect
github.com/spf13/cobra v0.0.5
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/viper v1.3.2
golang.org/x/oauth2 v0.0.0-20190523182746-aaccbc9213b0 // indirect
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect
github.com/spf13/viper v1.4.0
github.com/ugorji/go v1.1.7 // indirect
go.etcd.io/bbolt v1.3.3 // indirect
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 // indirect
golang.org/x/mobile v0.0.0-20190806162312-597adff16ade // indirect
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80 // indirect
golang.org/x/sys v0.0.0-20190812172437-4e8604ab3aff // indirect
golang.org/x/tools v0.0.0-20190812215550-89a01ca1a8d2 // indirect
google.golang.org/grpc v1.22.1 // indirect
gopkg.in/yaml.v2 v2.2.2
honnef.co/go/tools v0.0.1-2019.2.2 // indirect
k8s.io/api v0.0.0-20190802060718-d0d4f3afa3ab
k8s.io/apimachinery v0.0.0-20190802060556-6fa4771c83b3
k8s.io/client-go v12.0.0+incompatible
Expand Down
Loading

0 comments on commit ff64f6b

Please sign in to comment.