From 721d4a516af025bc371bc390f5854ad0e8febf57 Mon Sep 17 00:00:00 2001 From: Chuck Grindel Date: Mon, 16 Sep 2024 18:16:23 -0600 Subject: [PATCH] chore: remove legacy workspace info from release and readme (#1237) Remove legacy workspace information from the release page and when updating the readme. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- release/BUILD.bazel | 10 ------- release/workspace_snippet.tmpl | 54 ---------------------------------- 2 files changed, 64 deletions(-) delete mode 100644 release/workspace_snippet.tmpl diff --git a/release/BUILD.bazel b/release/BUILD.bazel index 5b7dd58dc..2dc0deedc 100644 --- a/release/BUILD.bazel +++ b/release/BUILD.bazel @@ -6,7 +6,6 @@ load( "create_release", "generate_module_snippet", "generate_release_notes", - "generate_workspace_snippet", "hash_sha256", "release_archive", "update_readme", @@ -27,23 +26,14 @@ generate_module_snippet( module_name = "rules_swift_package_manager", ) -generate_workspace_snippet( - name = "generate_workspace_snippet", - sha256_file = ":archive_sha256", - template = "workspace_snippet.tmpl", - workspace_name = "rules_swift_package_manager", -) - generate_release_notes( name = "generate_release_notes", generate_module_snippet = ":generate_module_snippet", - generate_workspace_snippet = ":generate_workspace_snippet", ) update_readme( name = "update_readme", generate_module_snippet = ":generate_module_snippet", - generate_workspace_snippet = ":generate_workspace_snippet", ) create_release( diff --git a/release/workspace_snippet.tmpl b/release/workspace_snippet.tmpl deleted file mode 100644 index ec08a0d71..000000000 --- a/release/workspace_snippet.tmpl +++ /dev/null @@ -1,54 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -${http_archive_statement} - -load("@rules_swift_package_manager//:deps.bzl", "swift_bazel_dependencies") - -swift_bazel_dependencies() - -load("@cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies") - -bazel_starlib_dependencies() - -# MARK: - Gazelle - -# gazelle:repo bazel_gazelle - -load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") -load("@rules_swift_package_manager//:go_deps.bzl", "swift_bazel_go_dependencies") -load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") - -# Declare Go dependencies before calling go_rules_dependencies. -swift_bazel_go_dependencies() - -go_rules_dependencies() - -go_register_toolchains(version = "1.21.1") - -gazelle_dependencies() - -# MARK: - Swift Toolchain - -http_archive( - name = "build_bazel_rules_swift", - # Populate with your preferred release - # https://github.com/bazelbuild/rules_swift/releases -) - -load( - "@build_bazel_rules_swift//swift:repositories.bzl", - "swift_rules_dependencies", -) -load("//:swift_deps.bzl", "swift_dependencies") - -# gazelle:repository_macro swift_deps.bzl%swift_dependencies -swift_dependencies() - -swift_rules_dependencies() - -load( - "@build_bazel_rules_swift//swift:extras.bzl", - "swift_rules_extra_dependencies", -) - -swift_rules_extra_dependencies()