Skip to content

Commit 3c8e29b

Browse files
authored
drop support govendor (#2148)
1 parent e90e2ba commit 3c8e29b

File tree

4 files changed

+4
-205
lines changed

4 files changed

+4
-205
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ before_install:
1717
- if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; fi
1818

1919
install:
20-
- if [[ "${GO111MODULE}" = "on" ]]; then go mod download; else make install; fi
20+
- if [[ "${GO111MODULE}" = "on" ]]; then go mod download; fi
2121
- if [[ "${GO111MODULE}" = "on" ]]; then export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"; fi
2222
- if [[ "${GO111MODULE}" = "on" ]]; then make tools; fi
2323

Makefile

+3-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
GO ?= go
22
GOFMT ?= gofmt "-s"
3-
PACKAGES ?= $(shell $(GO) list ./... | grep -v /vendor/)
4-
VETPACKAGES ?= $(shell $(GO) list ./... | grep -v /vendor/ | grep -v /examples/)
5-
GOFILES := $(shell find . -name "*.go" -type f -not -path "./vendor/*")
3+
PACKAGES ?= $(shell $(GO) list ./...)
4+
VETPACKAGES ?= $(shell $(GO) list ./... | grep -v /examples/)
5+
GOFILES := $(shell find . -name "*.go")
66
TESTFOLDER := $(shell $(GO) list ./... | grep -E 'gin$$|binding$$|render$$' | grep -v examples)
77

8-
all: install
9-
10-
install: deps
11-
govendor sync
12-
138
.PHONY: test
149
test:
1510
echo "mode: count" > coverage.out
@@ -48,11 +43,6 @@ fmt-check:
4843
vet:
4944
$(GO) vet $(VETPACKAGES)
5045

51-
deps:
52-
@hash govendor > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
53-
$(GO) get -u github.com/kardianos/govendor; \
54-
fi
55-
5646
.PHONY: lint
5747
lint:
5848
@hash golint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \

README.md

-38
Original file line numberDiff line numberDiff line change
@@ -88,44 +88,6 @@ import "github.com/gin-gonic/gin"
8888
import "net/http"
8989
```
9090

91-
### Use a vendor tool like [Govendor](https://github.com/kardianos/govendor)
92-
93-
1. `go get` govendor
94-
95-
```sh
96-
$ go get github.com/kardianos/govendor
97-
```
98-
2. Create your project folder and `cd` inside
99-
100-
```sh
101-
$ mkdir -p $GOPATH/src/github.com/myusername/project && cd "$_"
102-
```
103-
104-
If you are on a Mac and you're installing Go 1.8 (released: Feb 2017) or later, GOPATH is automatically determined by the Go toolchain for you. It defaults to $HOME/go on macOS so you can create your project like this
105-
106-
```sh
107-
$ mkdir -p $HOME/go/src/github.com/myusername/project && cd "$_"
108-
```
109-
110-
3. Vendor init your project and add gin
111-
112-
```sh
113-
$ govendor init
114-
$ govendor fetch github.com/gin-gonic/[email protected]
115-
```
116-
117-
4. Copy a starting template inside your project
118-
119-
```sh
120-
$ curl https://raw.githubusercontent.com/gin-gonic/examples/master/basic/main.go > main.go
121-
```
122-
123-
5. Run your project
124-
125-
```sh
126-
$ go run main.go
127-
```
128-
12991
## Quick start
13092

13193
```sh

vendor/vendor.json

-153
This file was deleted.

0 commit comments

Comments
 (0)