From 02b07499941d6ff0ac219f97dcef9e75936e33dd Mon Sep 17 00:00:00 2001 From: "publish-to-bcr-bot[bot]" <112732530+publish-to-bcr-bot[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 09:31:10 -0600 Subject: [PATCH] rules_swift_package_manager@0.43.0 (#3438) Release: https://github.com/cgrindel/rules_swift_package_manager/releases/tag/v0.43.0 _Automated by [Publish to BCR](https://github.com/apps/publish-to-bcr)_ Co-authored-by: Chuck Grindel --- .../0.43.0/MODULE.bazel | 83 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 +++ .../0.43.0/presubmit.yml | 14 ++++ .../0.43.0/source.json | 9 ++ .../rules_swift_package_manager/metadata.json | 3 +- 5 files changed, 120 insertions(+), 1 deletion(-) create mode 100644 modules/rules_swift_package_manager/0.43.0/MODULE.bazel create mode 100644 modules/rules_swift_package_manager/0.43.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_swift_package_manager/0.43.0/presubmit.yml create mode 100644 modules/rules_swift_package_manager/0.43.0/source.json diff --git a/modules/rules_swift_package_manager/0.43.0/MODULE.bazel b/modules/rules_swift_package_manager/0.43.0/MODULE.bazel new file mode 100644 index 00000000000..59b3991823b --- /dev/null +++ b/modules/rules_swift_package_manager/0.43.0/MODULE.bazel @@ -0,0 +1,83 @@ +module( + name = "rules_swift_package_manager", + version = "0.43.0", +) + +# MARK: - Runtime Dependencies + +bazel_dep(name = "cgrindel_bazel_starlib", version = "0.21.0") +bazel_dep(name = "bazel_skylib", version = "1.4.2") +bazel_dep(name = "rules_license", version = "0.0.8") +bazel_dep( + name = "rules_go", + version = "0.50.1", + repo_name = "io_bazel_rules_go", +) + +# The apple_support bazel_dep must come before the rules_cc. +# https://github.com/bazelbuild/apple_support#incompatible-toolchain-resolution +bazel_dep(name = "apple_support", version = "1.11.1") +bazel_dep(name = "rules_cc", version = "0.0.6") +bazel_dep(name = "platforms", version = "0.0.6") + +# With bzlmod enabled, any dependencies for repositories generated by +# rules_swift_package_manager _must_ be a runtime dependency of rules_swift_package_manager. +bazel_dep( + name = "rules_swift", + version = "2.2.0", + repo_name = "build_bazel_rules_swift", +) +bazel_dep( + name = "rules_apple", + version = "3.6.0", + repo_name = "build_bazel_rules_apple", +) +bazel_dep( + name = "gazelle", + version = "0.40.0", + repo_name = "bazel_gazelle", +) + +apple_cc_configure = use_extension( + "@apple_support//crosstool:setup.bzl", + "apple_cc_configure_extension", +) +use_repo(apple_cc_configure, "local_config_apple_cc") + +go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") +go_sdk.download(version = "1.23.1") + +go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bazelbuild_buildtools", + "com_github_creasty_defaults", + "com_github_deckarep_golang_set_v2", + "com_github_spf13_cobra", + "com_github_stretchr_testify", + "in_gopkg_yaml_v3", + "org_golang_x_exp", + "org_golang_x_text", +) + +# MARK: - Dev Dependencies + +bazel_dep( + name = "rules_bazel_integration_test", + version = "0.14.1", + dev_dependency = True, +) +bazel_dep( + name = "bazel_skylib_gazelle_plugin", + version = "1.4.1", + dev_dependency = True, +) + +bazel_binaries = use_extension( + "@rules_bazel_integration_test//:extensions.bzl", + "bazel_binaries", + dev_dependency = True, +) +bazel_binaries.download(version_file = "//:.bazelversion") +use_repo(bazel_binaries, "bazel_binaries") diff --git a/modules/rules_swift_package_manager/0.43.0/patches/module_dot_bazel_version.patch b/modules/rules_swift_package_manager/0.43.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..feff12e3278 --- /dev/null +++ b/modules/rules_swift_package_manager/0.43.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_swift_package_manager", +- version = "0.0.0", ++ version = "0.43.0", + ) + + # MARK: - Runtime Dependencies + diff --git a/modules/rules_swift_package_manager/0.43.0/presubmit.yml b/modules/rules_swift_package_manager/0.43.0/presubmit.yml new file mode 100644 index 00000000000..2796ee5f630 --- /dev/null +++ b/modules/rules_swift_package_manager/0.43.0/presubmit.yml @@ -0,0 +1,14 @@ +bcr_test_module: + module_path: "" + matrix: + platform: ["macos"] + bazel: + # This needs to exactly match the value used in .bazelversion at the root. + - 7.4.1 + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "//bzlmod:e2e_test" diff --git a/modules/rules_swift_package_manager/0.43.0/source.json b/modules/rules_swift_package_manager/0.43.0/source.json new file mode 100644 index 00000000000..29bf52049c8 --- /dev/null +++ b/modules/rules_swift_package_manager/0.43.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-FzGedmN+z9D4+AgfqdCP7sIl+IMXC2vVWtGkGC37VGY=", + "strip_prefix": "", + "url": "https://github.com/cgrindel/rules_swift_package_manager/releases/download/v0.43.0/rules_swift_package_manager.v0.43.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-oWcmCmotJtX2LkFm6JuYN4AVlYHbBYN2sqci32DYOdg=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_swift_package_manager/metadata.json b/modules/rules_swift_package_manager/metadata.json index 1e1d2fe4ca4..bacddeec782 100644 --- a/modules/rules_swift_package_manager/metadata.json +++ b/modules/rules_swift_package_manager/metadata.json @@ -56,7 +56,8 @@ "0.39.0", "0.40.1", "0.41.0", - "0.42.0" + "0.42.0", + "0.43.0" ], "yanked_versions": {} }