From 261d7ce86ebb4f7137f957b9b65e8093552f7bcf Mon Sep 17 00:00:00 2001 From: Alexandre Rostovtsev Date: Thu, 2 May 2024 15:35:32 -0400 Subject: distro fixes: add missing license and filter out dev-only deps from distro tarball (as in skylib) (#220) --- distro/BUILD | 7 +++++++ distro/distro.bzl | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/distro/BUILD b/distro/BUILD index 840e979..c42386d 100644 --- a/distro/BUILD +++ b/distro/BUILD @@ -12,6 +12,12 @@ alias( actual = "stardoc-%s" % version, ) +strip_internal_only( + name = "distro_module_bazel", + src = "//:MODULE.bazel", + out = "MODULE.bazel", +) + strip_internal_only( name = "distro_workspace", src = "//:WORKSPACE", @@ -27,6 +33,7 @@ strip_internal_only( pkg_tar( name = "distro_srcs", srcs = [ + "distro_module_bazel", "distro_workspace", "distro_workspace_bzlmod", "//:distro_srcs", diff --git a/distro/distro.bzl b/distro/distro.bzl index 947ba6b..a43faef 100644 --- a/distro/distro.bzl +++ b/distro/distro.bzl @@ -1,3 +1,17 @@ +# Copyright 2024 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. + """Macros related to distro tarball packaging""" def strip_internal_only(name, src, out): -- cgit v1.2.3