From e9815e59af4ff13e88e221287290c06d430d4adb Mon Sep 17 00:00:00 2001 From: Sudhanva Sreesha Date: Sun, 26 May 2024 13:57:02 -0400 Subject: [PATCH 1/4] Add CLI11@2.4.2. --- modules/cli11/2.4.2/MODULE.bazel | 7 +++++++ .../cli11/2.4.2/patches/module_dot_bazel.patch | 11 +++++++++++ modules/cli11/2.4.2/presubmit.yml | 17 +++++++++++++++++ modules/cli11/2.4.2/source.json | 9 +++++++++ modules/cli11/metadata.json | 16 ++++++++++++++++ 5 files changed, 60 insertions(+) create mode 100644 modules/cli11/2.4.2/MODULE.bazel create mode 100644 modules/cli11/2.4.2/patches/module_dot_bazel.patch create mode 100644 modules/cli11/2.4.2/presubmit.yml create mode 100644 modules/cli11/2.4.2/source.json create mode 100644 modules/cli11/metadata.json diff --git a/modules/cli11/2.4.2/MODULE.bazel b/modules/cli11/2.4.2/MODULE.bazel new file mode 100644 index 00000000000..449087a6af9 --- /dev/null +++ b/modules/cli11/2.4.2/MODULE.bazel @@ -0,0 +1,7 @@ +module( + name = "CLI11", + version = "2.4.2", + compatibility_level = 2, +) + +bazel_dep(name = "catch2", version = "3.5.4", dev_dependency = True) diff --git a/modules/cli11/2.4.2/patches/module_dot_bazel.patch b/modules/cli11/2.4.2/patches/module_dot_bazel.patch new file mode 100644 index 00000000000..1bc9c993ce0 --- /dev/null +++ b/modules/cli11/2.4.2/patches/module_dot_bazel.patch @@ -0,0 +1,11 @@ +--- MODULE.bazel ++++ MODULE.bazel +@@ -1,3 +1,7 @@ +-module(name = "cli11") ++module( ++ name = "CLI11", ++ version = "2.4.2", ++ compatibility_level = 2, ++) + + bazel_dep(name = "catch2", version = "3.5.4", dev_dependency = True) diff --git a/modules/cli11/2.4.2/presubmit.yml b/modules/cli11/2.4.2/presubmit.yml new file mode 100644 index 00000000000..6c07b906a20 --- /dev/null +++ b/modules/cli11/2.4.2/presubmit.yml @@ -0,0 +1,17 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - macos_arm64 + - windows + bazel: + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@CLI11' diff --git a/modules/cli11/2.4.2/source.json b/modules/cli11/2.4.2/source.json new file mode 100644 index 00000000000..d72d4b64c4b --- /dev/null +++ b/modules/cli11/2.4.2/source.json @@ -0,0 +1,9 @@ +{ + "url": "https://github.com/CLIUtils/CLI11/archive/refs/tags/v2.4.2.tar.gz", + "integrity": "sha256-8tiTplw7EyTFDU5oLAzcAh3QR3riwEhUTznu1mVLaZo=", + "strip_prefix": "CLI11-2.4.2", + "patches": { + "module_dot_bazel.patch": "sha256-gm/X9RPms1fP3yx5G0MumozFUUfr0Hzx5RDUmaWUpLY=" + }, + "patch_strip": 0 +} diff --git a/modules/cli11/metadata.json b/modules/cli11/metadata.json new file mode 100644 index 00000000000..f964cb9763a --- /dev/null +++ b/modules/cli11/metadata.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/CLIUtils/CLI11", + "maintainers": [ + { + "email": "bcr-maintainers@bazel.build", + "name": "No Maintainer Specified" + } + ], + "repository": [ + "github:CLIUtils/CLI11" + ], + "versions": [ + "2.4.2" + ], + "yanked_versions": {} +} From 5b9e7c3b14eb03d824b020fa4ca9bef82f7b346f Mon Sep 17 00:00:00 2001 From: Sudhanva Sreesha Date: Mon, 27 May 2024 10:41:47 -0400 Subject: [PATCH 2/4] Make the module name of "CLI11" lower case. --- modules/cli11/2.4.2/MODULE.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cli11/2.4.2/MODULE.bazel b/modules/cli11/2.4.2/MODULE.bazel index 449087a6af9..1d0d87ea6ed 100644 --- a/modules/cli11/2.4.2/MODULE.bazel +++ b/modules/cli11/2.4.2/MODULE.bazel @@ -1,5 +1,5 @@ module( - name = "CLI11", + name = "cli11", version = "2.4.2", compatibility_level = 2, ) From 89d92a71f1a53ee1fb50feccfc5682ea941b2e7b Mon Sep 17 00:00:00 2001 From: Sudhanva Sreesha Date: Mon, 27 May 2024 10:44:15 -0400 Subject: [PATCH 3/4] Update module name in the patch file and update the integreity value. --- modules/cli11/2.4.2/patches/module_dot_bazel.patch | 2 +- modules/cli11/2.4.2/source.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cli11/2.4.2/patches/module_dot_bazel.patch b/modules/cli11/2.4.2/patches/module_dot_bazel.patch index 1bc9c993ce0..c11c730d1cb 100644 --- a/modules/cli11/2.4.2/patches/module_dot_bazel.patch +++ b/modules/cli11/2.4.2/patches/module_dot_bazel.patch @@ -3,7 +3,7 @@ @@ -1,3 +1,7 @@ -module(name = "cli11") +module( -+ name = "CLI11", ++ name = "cli11", + version = "2.4.2", + compatibility_level = 2, +) diff --git a/modules/cli11/2.4.2/source.json b/modules/cli11/2.4.2/source.json index d72d4b64c4b..9f5c3f5052e 100644 --- a/modules/cli11/2.4.2/source.json +++ b/modules/cli11/2.4.2/source.json @@ -3,7 +3,7 @@ "integrity": "sha256-8tiTplw7EyTFDU5oLAzcAh3QR3riwEhUTznu1mVLaZo=", "strip_prefix": "CLI11-2.4.2", "patches": { - "module_dot_bazel.patch": "sha256-gm/X9RPms1fP3yx5G0MumozFUUfr0Hzx5RDUmaWUpLY=" + "module_dot_bazel.patch": "sha256-6WVKWVBk/EPGU6TOij0sPuc5XO11v25/EM/JqopjuUs=" }, "patch_strip": 0 } From c7e7bd8e742dd2fc24e4bb9721d468390bee37fa Mon Sep 17 00:00:00 2001 From: Sudhanva Sreesha Date: Mon, 27 May 2024 10:46:32 -0400 Subject: [PATCH 4/4] Update the build target to reflect the lowercase module name. --- modules/cli11/2.4.2/presubmit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cli11/2.4.2/presubmit.yml b/modules/cli11/2.4.2/presubmit.yml index 6c07b906a20..86c96889777 100644 --- a/modules/cli11/2.4.2/presubmit.yml +++ b/modules/cli11/2.4.2/presubmit.yml @@ -14,4 +14,4 @@ tasks: platform: ${{ platform }} bazel: ${{ bazel }} build_targets: - - '@CLI11' + - '@cli11'