• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

src-d/ghsync: GitHub API v3 > PostgreSQL

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

src-d/ghsync

开源软件地址:

https://github.com/src-d/ghsync

开源编程语言:

Go 91.0%

开源软件介绍:

ghsync

Build

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 modules
unset 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 [email protected]: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 run
export PATH=$GOPATH/bin:$PATH

# Back to ghsync, create the dependencies vendor folder
cd $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

Contribute

Contributions are more than welcome, if you are interested please take a look to our source{d} Contributing Guidelines.

Code of Conduct

All activities under source{d} projects are governed by the source{d} code of conduct.

License

GPL v3.0, see LICENSE.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
melix/grithub: A Groovy API for GitHub Java API发布时间:2022-06-11
下一篇:
CargoTube/ct_erwa_api: an API layer to use CargoTube as if it was Erwa发布时间:2022-06-11
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap