Last active
January 16, 2019 10:16
-
-
Save mishudark/94329cd9b19f7f03a79d3d733088d28d to your computer and use it in GitHub Desktop.
bazel gazelle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load("@io_bazel_rules_go//go:def.bzl", "gazelle") | |
gazelle( | |
name = "gazelle", | |
prefix = "github.com/google/go-github", | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gazelle: | |
gazelle -go_prefix github.com/google/go-github | |
gazelle update-repos -from_file Gopkg.lock | |
bazel run //:gazelle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http_archive( | |
name = "io_bazel_rules_go", | |
url = "https://github.com/bazelbuild/rules_go/releases/download/0.12.0/rules_go-0.12.0.tar.gz", | |
sha256 = "c1f52b8789218bb1542ed362c4f7de7052abcf254d865d96fb7ba6d44bc15ee3", | |
) | |
http_archive( | |
name = "bazel_gazelle", | |
url = "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() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bazel test //pkg/apiv2/store/devhose:go_default_test --incompatible_package_name_is_a_function=false