Skip to content

Commit

Permalink
Merge pull request #514 from 99designs/gomod
Browse files Browse the repository at this point in the history
Add support for go modules
  • Loading branch information
vektah authored Jan 27, 2019
2 parents 62175ea + 48eb6c5 commit 055fb4b
Show file tree
Hide file tree
Showing 47 changed files with 392 additions and 653 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
gqlgen/golang go run ./integration/server/server.go \
)
sleep 2
sleep 20
docker run \
-e SERVER_URL=http://integration_server:1234/query \
Expand Down
14 changes: 6 additions & 8 deletions .circleci/golang.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM golang:1.10
FROM golang:1.11

RUN curl -L -o /bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 && chmod +x /bin/dep
RUN go get -u github.com/alecthomas/gometalinter github.com/vektah/gorunpkg
RUN gometalinter --install
RUN curl -sL --fail https://github.com/golangci/golangci-lint/releases/download/v1.13/golangci-lint-1.13-linux-amd64.tar.gz | tar zxv --strip-components=1 --dir=/go/bin

WORKDIR /go/src/github.com/99designs/gqlgen
WORKDIR /projects/gqlgen

COPY Gopkg.* /go/src/github.com/99designs/gqlgen/
RUN dep ensure -v --vendor-only
COPY go.* /projects/gqlgen/
RUN go mod download

COPY . /go/src/github.com/99designs/gqlgen/
COPY . /projects/gqlgen/
2 changes: 1 addition & 1 deletion .circleci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ echo "### running testsuite"
go test -race ./...

echo "### linting"
gometalinter --vendor ./...
golangci-lint run
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
linters-settings:
errcheck:
ignore: fmt:.*,[rR]ead|[wW]rite|[cC]lose,io:Copy
14 changes: 0 additions & 14 deletions .gometalinter.json

This file was deleted.

270 changes: 0 additions & 270 deletions Gopkg.lock

This file was deleted.

29 changes: 0 additions & 29 deletions Gopkg.toml

This file was deleted.

Loading

0 comments on commit 055fb4b

Please sign in to comment.