Skip to content

Commit 33d27d9

Browse files
committed
glide -> dep
1 parent a0e02c9 commit 33d27d9

File tree

6 files changed

+114
-52
lines changed

6 files changed

+114
-52
lines changed

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.vendor
2-
vendor
3-
bin/primus-client
4-
bin/primus-server
1+
/build
2+
/tmp
3+
/vendor

Gopkg.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Gopkg.toml example
2+
#
3+
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
4+
# for detailed Gopkg.toml documentation.
5+
#
6+
# required = ["github.com/user/thing/cmd/thing"]
7+
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
8+
#
9+
# [[constraint]]
10+
# name = "github.com/user/project"
11+
# version = "1.0.0"
12+
#
13+
# [[constraint]]
14+
# name = "github.com/user/project2"
15+
# branch = "dev"
16+
# source = "github.com/myfork/project2"
17+
#
18+
# [[override]]
19+
# name = "github.com/x/y"
20+
# version = "2.4.0"
21+
#
22+
# [prune]
23+
# non-go = false
24+
# go-tests = true
25+
# unused-packages = true
26+
27+
28+
[[constraint]]
29+
name = "github.com/BurntSushi/toml"
30+
version = "0.2.0"
31+
32+
[[constraint]]
33+
name = "github.com/Sirupsen/logrus"
34+
version = "0.11.0"
35+
36+
[prune]
37+
go-tests = true
38+
unused-packages = true

Makefile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
TARGETS_NOVENDOR=$(shell glide novendor)
1+
DEP ?= dep
2+
BUILD_DIR = ./build
3+
PRIMUS_CLIENT = $(BUILD_DIR)/primus-client
4+
PRIMUS_SERVER = $(BUILD_DIR)/primus-server
25

3-
all: bin/primus-server bin/primus-client
6+
all: deps $(PRIMUS_CLIENT) $(PRIMUS_SERVER)
47

5-
bundle:
6-
glide install
8+
deps:
9+
$(DEP) ensure -vendor-only
710

8-
bin/primus-server: cmd/primus/server/main.go server/*.go
9-
go build $(GOFLAGS) -o bin/primus-server cmd/primus/server/main.go
11+
$(PRIMUS_CLIENT):
12+
go build -o $(PRIMUS_CLIENT) cmd/primus/client/main.go
1013

11-
bin/primus-client: cmd/primus/client/main.go client/*.go
12-
go build $(GOFLAGS) -o bin/primus-client cmd/primus/client/main.go
13-
14-
fmt:
15-
@echo $(TARGETS_NOVENDOR) | xargs go fmt
14+
$(PRIMUS_SERVER):
15+
go build -o $(PRIMUS_SERVER) cmd/primus/server/main.go
1616

1717
clean:
18-
rm -rf bin/primus*
18+
rm -rf $(BUILD_DIR)

glide.lock

Lines changed: 0 additions & 27 deletions
This file was deleted.

glide.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)