From 95022d3531b498a40bdc87a8bc0308706def029e Mon Sep 17 00:00:00 2001 From: Nicolas Lopez Date: Fri, 11 Oct 2019 17:27:01 -0400 Subject: [PATCH] fixes --- docker/security/BUILD | 6 +----- repositories/go_repositories.bzl | 7 +++++++ testing/examples/.bazelrc | 18 ------------------ 3 files changed, 8 insertions(+), 23 deletions(-) delete mode 100644 testing/examples/.bazelrc diff --git a/docker/security/BUILD b/docker/security/BUILD index 0937912e5..df6b76c44 100644 --- a/docker/security/BUILD +++ b/docker/security/BUILD @@ -13,7 +13,6 @@ # limitations under the License. load("@bazel_skylib//:bzl_library.bzl", "bzl_library") -load("@pip_deps//:requirements.bzl", "requirement") load("@subpar//:subpar.bzl", "par_binary") package(default_visibility = ["//visibility:public"]) @@ -26,11 +25,8 @@ par_binary( name = "security_check", srcs = ["security_check.py"], main = "security_check.py", - python_version = "PY2", + python_version = "PY3", visibility = ["//visibility:public"], - deps = [ - requirement("PyYaml"), - ], ) bzl_library( diff --git a/repositories/go_repositories.bzl b/repositories/go_repositories.bzl index ca3d5d7b2..c3244ad03 100644 --- a/repositories/go_repositories.bzl +++ b/repositories/go_repositories.bzl @@ -59,3 +59,10 @@ def go_deps(): commit = "9ff306d4fbead574800b66369df5b6144732d58e", # v1.1.0 importpath = "github.com/kylelemons/godebug", ) + if "com_github_ghodss_yaml" not in excludes: + go_repository( + name = "com_github_ghodss_yaml", + importpath = "github.com/ghodss/yaml", + sum = "h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=", + version = "v1.0.0", + ) diff --git a/testing/examples/.bazelrc b/testing/examples/.bazelrc deleted file mode 100644 index e9bb64632..000000000 --- a/testing/examples/.bazelrc +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright 2017 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. - -build --host_force_python=PY2 -test --host_force_python=PY2 -run --host_force_python=PY2 -