Skip to content

Commit

Permalink
without go dep
Browse files Browse the repository at this point in the history
  • Loading branch information
corrupt952 committed Nov 21, 2020
1 parent d2452f3 commit f3d98c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '2.1'
defaults: &defaults
docker:
- image: golang:1.15
working_directory: /go/src/github.com/corrupt952/tmuxist
working_directory: /go/src/app

workflows:
version: 2
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
BUILD_GOARCH: amd64
CGO_ENABLED: 1
steps:
- run: go get -u github.com/golang/dep/cmd/dep github.com/mitchellh/gox
- run: go get -u github.com/mitchellh/gox
- checkout
- restore_cache:
keys:
Expand Down
11 changes: 3 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ LDFLAGS ?= "-X github.com/corrupt952/tmuxist/version.Version=${VERSION}"

all: build

dep:
dep ensure

build: dep
build:
gox -ldflags=${LDFLAGS} -output="pkg/{{.OS}}_{{.Arch}}/{{.Dir}}" -osarch="darwin/amd64 linux/amd64 linux/386"

package: build
Expand All @@ -17,14 +14,13 @@ package: build
release:
@ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} pkg


run: dep
run:
go run *.go

fmt:
go fmt ./...

test: dep
test:
go test -v ./...

lint:
Expand All @@ -38,6 +34,5 @@ vars:
echo ${LDFLAGS}

setup:
go get -u github.com/golang/dep/cmd/dep
go get -u github.com/mitchellh/gox
go get -u golang.org/x/lint/golint

0 comments on commit f3d98c2

Please sign in to comment.