DataDog/rules_go_dep

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Go dep rules for Bazel

See go-dep-bazel-vscode-example for an example project.

Workspace rules

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.