load("/tools/build_rules/go/def", "go_repositories")

go_repositories()

# protobuf
git_repository(
	name = "protobuf",
	remote = "/Users/rhysh/work/src/github.com/google/protobuf",
	commit = "60f7fc51fb01ac98fd64d9372e7547f5ab267ce5",
)
bind(
	name = "protobuf/protoc",
	actual = "@protobuf//:protoc",
)
# six, for protobuf
new_http_archive(
	name = "six_archive",
	url = "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55",
	sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a",
	build_file = "tools/six.BUILD",
)
bind(
	name = "six",
	actual = "@six_archive//:six",
)

new_git_repository(
	name = "golang",
	remote = "/usr/local/go",
	commit = "1b6d55acab9199e09f9134ff3ac359647767f741",
	build_file = "tools/BUILD.golang",
)

new_git_repository(
	name = "golang-bootstrap",
	remote = "/usr/local/go",
	tag = "go1.4.3",
	build_file = "tools/BUILD.golang-bootstrap",
)

bind(
	name = "go14/bin/go",
	actual = "@golang-bootstrap//:build.d/bin/go",
)

bind(
	name = "go14/src",
	actual = "@golang-bootstrap//:src",
)

new_git_repository(
	name = "godep",
	remote = "https://github.com/tools/godep.git",
	commit = "32d49a17abe34aec8a58f6b4d049efd846206dfe",
	build_file = "tools/BUILD.godep",
)

new_git_repository(
	name = "go-bindata",
	remote = "https://github.com/jteeuwen/go-bindata.git",
	commit = "a0ff2567cfb70903282db057e799fd826784d41d",
	build_file = "tools/BUILD.go-bindata",
)

new_git_repository(
	name = "kisielk-errcheck",
	remote = "https://github.com/kisielk/errcheck.git",
	commit = "12fd1ab9811e54c55207f3e83134ff59829fbf21",
	build_file = "tools/BUILD.kisielk-errcheck",
)

new_git_repository(
	name = "kisielk-gotool",
	remote = "https://github.com/kisielk/gotool.git",
	commit = "58a7a198f2ec6ea7af221fd216e7f559d663ce02",
	build_file = "tools/BUILD.kisielk-gotool",
)

new_git_repository(
	name = "x-tools",
	remote = "https://github.com/golang/tools.git",
	commit = "c0008c5889c0d5091cdfefd2bfb08bff96527879",
	build_file = "tools/BUILD.x-tools",
)
