You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project does not support building as a go module. It needs to be compiled in $GOPATH/src/github.com/src-d/ghsync.
To build use:
make build
To update the vendor dependencies, run
GO111MODULE=on go mod tidy
GO111MODULE=on go mod vendor
Kallax Models
In order to update the kallax models, place this project in $GOPATH/src/github.com/src-d/ghsync.
Then follow these steps:
# Make sure you are not using modulesunset GO111MODULE
# Get kallax, replace it with mcuadros fork, branch ghsync
go get -u gopkg.in/src-d/go-kallax.v1/...
cd$GOPATH/src/gopkg.in/src-d/go-kallax.v1
git remote add mcuadros git@github.com:mcuadros/go-kallax.git
git fetch --all
git checkout -b ghsync mcuadros/ghsync
# Build kallax
rm $GOPATH/bin/kallax
go get -u github.com/golang-migrate/migrate
cd generator/cli/kallax
go install
# Make sure the $GOPATH/bin is in your path, if not runexport PATH=$GOPATH/bin:$PATH# Back to ghsync, create the dependencies vendor foldercd$GOPATH/src/github.com/src-d/ghsync
GO111MODULE=on go mod vendor
# Run kallax generation
go generate ./...
# Create the migration files
kallax migrate --input models --out models/sql --name some_name
# Update bindata
make bindata