From aa538742a50d56fc50cefc03bb701c992d0f5f73 Mon Sep 17 00:00:00 2001 From: aiuto Date: Thu, 9 Feb 2023 09:01:43 -0500 Subject: [PATCH] add rules_license 0.0.4 (#432) --- modules/rules_license/0.0.4/MODULE.bazel | 16 ++++++++++++++++ .../0.0.4/patches/module_dot_bazel.patch | 19 +++++++++++++++++++ modules/rules_license/0.0.4/presubmit.yml | 13 +++++++++++++ modules/rules_license/0.0.4/source.json | 8 ++++++++ modules/rules_license/metadata.json | 3 ++- 5 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 modules/rules_license/0.0.4/MODULE.bazel create mode 100644 modules/rules_license/0.0.4/patches/module_dot_bazel.patch create mode 100644 modules/rules_license/0.0.4/presubmit.yml create mode 100644 modules/rules_license/0.0.4/source.json diff --git a/modules/rules_license/0.0.4/MODULE.bazel b/modules/rules_license/0.0.4/MODULE.bazel new file mode 100644 index 00000000000..114446abcdb --- /dev/null +++ b/modules/rules_license/0.0.4/MODULE.bazel @@ -0,0 +1,16 @@ +module( + name = "rules_license", + version = "0.0.4", # Keep in sync with version.bzl + compatibility_level = 1, +) + +# NOTE: rules_license must not depend on any other repositories if you are +# just using basic rules under //rules/... and //licenses/... + +# TODO(aiuto): Create an extension to enable the rules under //tools/... +# That will require rules_python, which we do not want to force on people who +# do not need //tools. + +# Only for development +bazel_dep(name = "rules_pkg", version = "0.7.0", dev_dependency = True) +bazel_dep(name = "stardoc", version = "0.5.3", dev_dependency = True) diff --git a/modules/rules_license/0.0.4/patches/module_dot_bazel.patch b/modules/rules_license/0.0.4/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..e4080dae8de --- /dev/null +++ b/modules/rules_license/0.0.4/patches/module_dot_bazel.patch @@ -0,0 +1,19 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -0,0 +1,16 @@ ++module( ++ name = "rules_license", ++ version = "0.0.4", # Keep in sync with version.bzl ++ compatibility_level = 1, ++) ++ ++# NOTE: rules_license must not depend on any other repositories if you are ++# just using basic rules under //rules/... and //licenses/... ++ ++# TODO(aiuto): Create an extension to enable the rules under //tools/... ++# That will require rules_python, which we do not want to force on people who ++# do not need //tools. ++ ++# Only for development ++bazel_dep(name = "rules_pkg", version = "0.7.0", dev_dependency = True) ++bazel_dep(name = "stardoc", version = "0.5.3", dev_dependency = True) diff --git a/modules/rules_license/0.0.4/presubmit.yml b/modules/rules_license/0.0.4/presubmit.yml new file mode 100644 index 00000000000..71ee1aeeb9c --- /dev/null +++ b/modules/rules_license/0.0.4/presubmit.yml @@ -0,0 +1,13 @@ +matrix: + platform: + - centos7 + - debian10 + - ubuntu2004 + - macos + - windows +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + build_targets: + - '@rules_license//:license' diff --git a/modules/rules_license/0.0.4/source.json b/modules/rules_license/0.0.4/source.json new file mode 100644 index 00000000000..cdbb6871abf --- /dev/null +++ b/modules/rules_license/0.0.4/source.json @@ -0,0 +1,8 @@ +{ + "url": "https://github.com/bazelbuild/rules_license/releases/download/0.0.4/rules_license-0.0.4.tar.gz", + "integrity": "sha256-YVfh5oN4Uy0CQezRXTxF9uXP2Y/BCEYEVQn7KnzJ44E=", + "patch_strip": 0, + "patches": { + "module_dot_bazel.patch": "sha256-2O91O30x+WJKMjIsPWLJJoOK5W+4CpMWdFoCulGUprA=" + } +} diff --git a/modules/rules_license/metadata.json b/modules/rules_license/metadata.json index e1280ce128a..7959e3a9687 100644 --- a/modules/rules_license/metadata.json +++ b/modules/rules_license/metadata.json @@ -12,7 +12,8 @@ ], "versions": [ "0.0.2", - "0.0.3" + "0.0.3", + "0.0.4" ], "yanked_versions": {} }