forked from bazel-contrib/bazel-gazelle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various syncing and reconciling (bazel-contrib#4)
* Sync with rules_go at ac35fb1 * Move //gazelle to //cmd/gazelle * Minor adjustments to sync script and patch.
- Loading branch information
Showing
27 changed files
with
694 additions
and
780 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,46 @@ | ||
# TODO(jayconrod): move //gazelle to //cmd/gazelle after the Gazelle in rules_go | ||
# is completely turned down. For now, the paths need to match for the import | ||
# script to work. | ||
alias( | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_binary", "go_test") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = [ | ||
"diff.go", | ||
"fix.go", | ||
"flags.go", | ||
"main.go", | ||
"print.go", | ||
], | ||
importpath = "github.com/bazelbuild/bazel-gazelle/cmd/gazelle", | ||
visibility = ["//visibility:private"], | ||
deps = [ | ||
"//config:go_default_library", | ||
"//merger:go_default_library", | ||
"//packages:go_default_library", | ||
"//resolve:go_default_library", | ||
"//rules:go_default_library", | ||
"//wspace:go_default_library", | ||
"@com_github_bazelbuild_buildtools//build:go_default_library", | ||
], | ||
) | ||
|
||
go_binary( | ||
name = "gazelle", | ||
actual = "//gazelle:gazelle", | ||
embed = [":go_default_library"], | ||
importpath = "github.com/bazelbuild/bazel-gazelle/cmd/gazelle", | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
go_test( | ||
name = "go_default_test", | ||
size = "small", | ||
srcs = [ | ||
"fix_test.go", | ||
"integration_test.go", | ||
], | ||
embed = [":go_default_library"], | ||
importpath = "github.com/bazelbuild/bazel-gazelle/cmd/gazelle", | ||
deps = [ | ||
"//config:go_default_library", | ||
"//wspace:go_default_library", | ||
"@com_github_bazelbuild_buildtools//build:go_default_library", | ||
], | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.