load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "io_bazel_rules_go", urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.12.1/rules_go-0.12.1.tar.gz"], sha256 = "8b68d0630d63d95dacc0016c3bb4b76154fe34fca93efd65d1c366de3fcb4294", ) http_archive( name = "bazel_gazelle", urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.12.0/bazel-gazelle-0.12.0.tar.gz"], sha256 = "ddedc7aaeb61f2654d7d7d4fd7940052ea992ccdb031b8f9797ed143ac7e8d43", ) load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains") go_rules_dependencies() go_register_toolchains() load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") gazelle_dependencies() go_repository( name = "com_github_ethereum_go_ethereum", importpath = "github.com/ethereum/go-ethereum", # Note: go-ethereum is not bazel-friendly with regards to cgo. We have a # a fork that has resolved these issues by disabling HID/USB support and # some manual fixes for c imports in the crypto package. This is forked # branch should be updated from time to time with the latest go-ethereum # code. remote = "https://github.com/prysmaticlabs/bazel-go-ethereum", vcs = "git", # Last updated July 5, 2018 commit = "eb95493d32b6e1eb1cad63518637e1a958632389", ) # TODO: Update this to use github.com/urfave/cli. go_repository( name = "in_gopkg_urfave_cli_v1", importpath = "gopkg.in/urfave/cli.v1", commit = "cfb38830724cc34fedffe9a2a29fb54fa9169cd1", ) go_repository( name = "com_github_fjl_memsize", importpath = "github.com/fjl/memsize", commit = "ca190fb6ffbc076ff49197b7168a760f30182d2e", )