diff options
author | Alexandre Rostovtsev <arostovtsev@google.com> | 2024-05-02 15:35:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 15:35:32 -0400 |
commit | 261d7ce86ebb4f7137f957b9b65e8093552f7bcf (patch) | |
tree | 5086ddb296bc0775c61eae322879f8fecba085a1 | |
parent | df958bcbde3327d805bbb76e067809c62262ca30 (diff) | |
download | stardoc-upstream-master.tar.gz |
distro fixes: add missing license and filter out dev-only deps from distro tarball (as in skylib) (#220)upstream-master
-rw-r--r-- | distro/BUILD | 7 | ||||
-rw-r--r-- | distro/distro.bzl | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/distro/BUILD b/distro/BUILD index 840e979..c42386d 100644 --- a/distro/BUILD +++ b/distro/BUILD @@ -13,6 +13,12 @@ alias( ) strip_internal_only( + name = "distro_module_bazel", + src = "//:MODULE.bazel", + out = "MODULE.bazel", +) + +strip_internal_only( name = "distro_workspace", src = "//:WORKSPACE", out = "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): |