Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions _scripts/go-vitess/Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# Tooling to create the package `gopkg.in/src-d/go-vitess.v0`.
# Tooling to create the package `gopkg.in/src-d/go-vitess.v1`.

# config
PACKAGE := gopkg.in/src-d/go-vitess.v0
PACKAGE := gopkg.in/src-d/go-vitess.v1
REMOTE := git@github.com:src-d/go-vitess.git
VITESS_GIT := https://github.com/youtube/vitess
VITESS_PKG := github.com/youtube/vitess/go/mysql
VITESS_PKG := vitess.io/vitess/go/mysql
DEPENDENCIES := \
github.com/novalagung/gorep \
github.com/youtube/vitess

VITESS_SRC := ${GOPATH}/src/${PACKAGE}
PACKAGES := $(VITESS_PKG) $(shell go list -f '{{ join .Deps "\n" }}' ${VITESS_PKG} | grep -i vitess)
FOLDERS := $(shell echo ${PACKAGES} | sed -e 's/github.com\/youtube\/vitess\///g')
GIT_COMMIT := $(shell cd ${VITESS_SRC} && git show-ref refs/original/refs/heads/master --hash)
FOLDERS := $(shell echo ${PACKAGES} | sed -e 's/vitess.io\/vitess\///g')
GIT_COMMIT := `$(shell cd ${VITESS_SRC} && git show-ref refs/original/refs/heads/master --hash)`
ETC_PATH := $(PWD)/etc

all: prepare-package
prepare-package: | filter-branch rename-packages replace-glog prepare-git commit
prepare-package: | filter-branch rename-packages prepare-git commit

$(VITESS_SRC):
git clone --single-branch --no-tags ${VITESS_GIT} $@
Expand All @@ -38,7 +38,7 @@ commit:
rename-packages:
cd ${VITESS_SRC} && \
git mv go/* . && \
gorep -from=github.com/youtube/vitess/go -to=${PACKAGE}
gorep -from=vitess.io/vitess/go -to=${PACKAGE}

replace-glog:
cd ${VITESS_SRC} && \
Expand Down
4 changes: 2 additions & 2 deletions _scripts/go-vitess/etc/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# go-vitess [![GoDoc](https://godoc.org/gopkg.in/src-d/go-vitess.v0?status.svg)](https://godoc.org/gopkg.in/src-d/go-vitess.v0)
# go-vitess [![GoDoc](https://godoc.org/gopkg.in/src-d/go-vitess.v1?status.svg)](https://godoc.org/gopkg.in/src-d/go-vitess.v1)

`go-vitess` is an automatic filter-branch done by an [script](https://github.com/src-d/go-mysql-server/blob/master/_scripts/go-vitess/Makefile), of the great [Vitess](github.com/youtube/vitess) project.

Expand All @@ -9,7 +9,7 @@ It holds all the packages to create your own MySQL server and a full SQL parser.
## Installation

```sh
go get -v -u gopkg.in/src-d/go-vitess.v0/...
go get -v -u gopkg.in/src-d/go-vitess.v1/...
```

## Contributions
Expand Down
2 changes: 1 addition & 1 deletion _scripts/go-vitess/etc/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
//
// It holds all the packages to create your own MySQL server and a full SQL
// parser.
package vitess // import "gopkg.in/src-d/go-vitess.v0"
package vitess // import "gopkg.in/src-d/go-vitess.v1"