Name: rules_go_dep
Owner: Datadog, Inc.
Description: Converts Gopkg.lock to bazel go_repository workspace rules
Forked from: scele/rules_go_dep
Created: 2018-01-22 18:05:09.0
Updated: 2018-01-22 18:05:11.0
Pushed: 2018-02-13 11:26:53.0
Homepage: null
Size: 2438
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
See go-dep-bazel-vscode-example for an example project.
Generate Gopkg.lock
file with dep init
, and add following rules to your WORKSPACE
file:
Refer to
_archive(
name = "com_github_scele_rules_go_dep",
urls = ["https://github.com/scele/rules_go_dep/archive/70fa72816cae64f67634740bc6c0233f39b5d8c6.tar.gz"],
strip_prefix = "rules_go_dep-70fa72816cae64f67634740bc6c0233f39b5d8c6",
sha256 = "20eeac91a621af97a39e9e30848727d6c14c7d68fcf3fcc139e98e3c363b4661",
("@com_github_scele_rules_go_dep//dep:dep.bzl", "dep_import")
import(
name = "godeps",
gopkg_lock = "//:Gopkg.lock",
("@godeps//:Gopkg.bzl", "go_deps")
eps()
This will load all go dependencies expressed in Gopkg.lock
into your workspace.