Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit 051434f

Browse files
committed
fix #198, use dep for vendoring
1 parent be6688f commit 051434f

File tree

4 files changed

+81
-3
lines changed

4 files changed

+81
-3
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.idea
2-
/coverage.txt
3-
/profile.out
1+
/vendor
42
/bug_test.go
3+
/coverage.txt
4+
/.idea

Gopkg.lock

Lines changed: 33 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: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
23+
[[constraint]]
24+
name = "github.com/davecgh/go-spew"
25+
version = "1.1.0"
26+
27+
[[constraint]]
28+
branch = "master"
29+
name = "github.com/google/gofuzz"
30+
31+
[[constraint]]
32+
name = "github.com/stretchr/testify"
33+
version = "1.1.4"

build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -e
3+
set -x
4+
5+
if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then
6+
mkdir -p /tmp/build-golang/src/github.com/json-iterator
7+
ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go
8+
fi
9+
export GOPATH=/tmp/build-golang
10+
go get -u github.com/golang/dep/cmd/dep
11+
cd /tmp/build-golang/src/github.com/json-iterator/go
12+
exec $GOPATH/bin/dep ensure -update

0 commit comments

Comments
 (0)