Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonsinth committed Jul 12, 2022
1 parent 1247fca commit 008ee87
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 8 deletions.
7 changes: 5 additions & 2 deletions runner/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ go_library(
"//internal/wspace",
"//label",
"//language",
"//language/go",
"//language/proto",
"//merger",
"//repo",
"//resolve",
Expand All @@ -39,13 +37,17 @@ go_test(
"diff_test.go",
"fix_test.go",
"integration_test.go",
"langs_test.go",
],
args = ["-go_sdk=go_sdk"],
data = ["@go_sdk//:files"],
embed = [":runner"],
deps = [
"//config",
"//internal/wspace",
"//language",
"//language/go",
"//language/proto",
"//testtools",
"@io_bazel_rules_go//go/tools/bazel:go_default_library",
],
Expand All @@ -64,6 +66,7 @@ filegroup(
"gazelle.go",
"integration_test.go",
"langs.go",
"langs_test.go",
"metaresolver.go",
"print.go",
"update-repos.go",
Expand Down
7 changes: 1 addition & 6 deletions runner/langs.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ package runner

import (
"github.com/bazelbuild/bazel-gazelle/language"
"github.com/bazelbuild/bazel-gazelle/language/go"
"github.com/bazelbuild/bazel-gazelle/language/proto"
)

var languages = []language.Language{
proto.NewLanguage(),
golang.NewLanguage(),
}
var languages []language.Language
29 changes: 29 additions & 0 deletions runner/langs_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* Copyright 2018 The Bazel Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package runner

import (
"github.com/bazelbuild/bazel-gazelle/language"
"github.com/bazelbuild/bazel-gazelle/language/go"
"github.com/bazelbuild/bazel-gazelle/language/proto"
)

func init() {
languages = []language.Language{
proto.NewLanguage(),
golang.NewLanguage(),
}
}

0 comments on commit 008ee87

Please sign in to comment.