-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #514 from 99designs/gomod
Add support for go modules
- Loading branch information
Showing
47 changed files
with
392 additions
and
653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.