Files
lotr/WORKSPACE
Laramie Leavitt dad6f57d6d Update WORKSPACE / BUILD to work with bazel at HEAD.
Uses external rules_go github repository.
2016-03-21 16:56:03 -07:00

37 lines
783 B
Python

git_repository(
name = "io_bazel_rules_go",
remote = "https://github.com/bazelbuild/rules_go.git",
commit = "373feb6",
)
load("@io_bazel_rules_go//go:def.bzl", "go_repositories")
go_repositories()
git_repository(
name = "ws_remote",
remote = "https://github.com/laramiel/bazel-example-golang-remote.git",
commit = "8f2e405",
)
BARE_BUILD = """
load("@bazel_tools//tools/build_rules/go:def.bzl", "go_prefix", "go_library")
go_prefix("github.com/laramiel/bazel-example-golang-bare")
go_library(
name = "bare",
srcs = [ "bare.go" ],
visibility = ["//visibility:public"],
)
"""
new_git_repository(
name = "ws_bare",
remote = "https://github.com/laramiel/bazel-example-golang-bare.git",
commit = "3bd848f",
build_file_content = BARE_BUILD
)