File tree 5 files changed +27
-3
lines changed
orc8r/gateway/c/common/config
5 files changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -185,3 +185,12 @@ jobs:
185
185
run : |
186
186
cd /workspaces/magma
187
187
bazel test //... --test_output=errors --cache_test_results=no
188
+ - name : Run `bazel run //:check_starlark_format`
189
+ uses : addnab/docker-run-action@v2
190
+ with :
191
+ image : ${{ env.DEVCONTAINER_IMAGE }}
192
+ # TODO: Remove work-around mount of Github workspace to /magma (https://github.com/addnab/docker-run-action/issues/11)
193
+ options : -v ${{ github.workspace }}:/workspaces/magma/
194
+ run : |
195
+ cd /workspaces/magma
196
+ bazel run //:check_starlark_format
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ buildifier_test(
25
25
timeout = "short" ,
26
26
srcs = ["//:starlark_files" ],
27
27
lint_mode = "warn" ,
28
- lint_warnings = ["all " ],
28
+ lint_warnings = ["-unused-variable " ],
29
29
verbose = True ,
30
30
)
31
31
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def cpp_repositories():
69
69
commit = "d8326b2bba945a435f299e7526c403d7a1f68c1f" ,
70
70
remote = "https://github.com/jupp0r/prometheus-cpp.git" ,
71
71
shallow_since = "1485901529 +0100" ,
72
- repo_mapping = {"@protobuf" : "@com_google_protobuf" },
72
+ repo_mapping = {"@protobuf" : "@com_google_protobuf" },
73
73
)
74
74
75
75
# cpp_redis dependency
Original file line number Diff line number Diff line change
1
+ # Copyright 2021 The Magma Authors.
2
+
3
+ # This source code is licensed under the BSD-style license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ # Unless required by applicable law or agreed to in writing, software
7
+ # distributed under the License is distributed on an "AS IS" BASIS,
8
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ # See the License for the specific language governing permissions and
10
+ # limitations under the License.
11
+
12
+ """ Load external go repositories. """
13
+
1
14
load ("@bazel_gazelle//:deps.bzl" , "go_repository" )
2
15
3
16
def go_repositories ():
17
+ """ Declares all go dependencies. """
18
+
4
19
go_repository (
5
20
name = "co_honnef_go_tools" ,
6
21
importpath = "honnef.co/go/tools" ,
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ cc_library(
32
32
strip_include_prefix = "/orc8r/gateway/c/common/config" ,
33
33
deps = [
34
34
"//orc8r/gateway/c/common/logging" ,
35
- "@github_nlohmann_json//:json" ,
36
35
"@com_google_protobuf//:protobuf" ,
36
+ "@github_nlohmann_json//:json" ,
37
37
],
38
38
)
39
39
You can’t perform that action at this time.
0 commit comments