-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove remaining legacy workspace code (#1277)
Removes the last remnants of legacy workspace support. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
466a283
commit b0f0f62
Showing
3 changed files
with
1 addition
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1 @@ | ||
workspace(name = "vapor_example") | ||
|
||
local_repository( | ||
name = "rules_swift_package_manager", | ||
path = "../..", | ||
) | ||
|
||
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_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
http_archive( | ||
name = "bazel_skylib_gazelle_plugin", | ||
sha256 = "e0629e3cbacca15e2c659833b24b86174d22b664ca0a67f377108ff6a207cc8c", | ||
urls = [ | ||
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-gazelle-plugin-1.7.1.tar.gz", | ||
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-gazelle-plugin-1.7.1.tar.gz", | ||
], | ||
) | ||
|
||
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") | ||
load("@bazel_skylib_gazelle_plugin//:workspace.bzl", "bazel_skylib_gazelle_plugin_workspace") | ||
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") | ||
load("@rules_swift_package_manager//:go_deps.bzl", "swift_bazel_go_dependencies") | ||
|
||
# Declare Go dependencies before calling go_rules_dependencies. | ||
swift_bazel_go_dependencies() | ||
|
||
bazel_skylib_gazelle_plugin_workspace() | ||
|
||
go_rules_dependencies() | ||
|
||
go_register_toolchains(version = "1.21.1") | ||
|
||
gazelle_dependencies() | ||
|
||
# MARK: - Swift Toolchain | ||
|
||
http_archive( | ||
name = "build_bazel_rules_swift", | ||
sha256 = "9919ed1d8dae509645bfd380537ae6501528d8de971caebed6d5185b9970dc4d", | ||
url = "https://github.com/bazelbuild/rules_swift/releases/download/2.1.1/rules_swift.2.1.1.tar.gz", | ||
) | ||
|
||
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() | ||
# Intentionally blank: Using bzlmod |