From 2902c2cd6e325e8cd799471d048f596f42619630 Mon Sep 17 00:00:00 2001 From: Javier Maestro Date: Mon, 28 Oct 2024 18:36:30 +0000 Subject: [PATCH] fix: buildifier Run `buildifier -r .` to fix failed checks from previous PRs. --- distroless/private/cacerts.bzl | 1 - examples/debian_snapshot/BUILD.bazel | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/distroless/private/cacerts.bzl b/distroless/private/cacerts.bzl index 3bbc7fa..44aded3 100644 --- a/distroless/private/cacerts.bzl +++ b/distroless/private/cacerts.bzl @@ -43,7 +43,6 @@ oci_image( ``` """ - def _cacerts_impl(ctx): bsdtar = ctx.toolchains[tar_lib.TOOLCHAIN_TYPE] diff --git a/examples/debian_snapshot/BUILD.bazel b/examples/debian_snapshot/BUILD.bazel index 4925d72..467bc64 100644 --- a/examples/debian_snapshot/BUILD.bazel +++ b/examples/debian_snapshot/BUILD.bazel @@ -88,6 +88,10 @@ oci_image( "@platforms//cpu:arm64": "arm64", "@platforms//cpu:x86_64": "amd64", }), + env = { + # Required to use the SSL certs from `cacerts()` + "SSL_CERT_FILE": "/etc/ssl/certs/ca-certificates.crt", + }, os = "linux", tars = [ ":sh", @@ -105,10 +109,6 @@ oci_image( for package in PACKAGES ], }), - env = { - # Required to use the SSL certs from `cacerts()` - "SSL_CERT_FILE": "/etc/ssl/certs/ca-certificates.crt", - } ) oci_load(