-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert removal of legacy workspace stuff.
- Loading branch information
Showing
4 changed files
with
154 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,82 @@ | ||
# Intentionally blank. | ||
workspace(name = "custom_test_runner_example") | ||
|
||
# MARK: - rules_bazel_integration_test | ||
|
||
local_repository( | ||
name = "rules_bazel_integration_test", | ||
path = "../..", | ||
) | ||
|
||
load("@rules_bazel_integration_test//bazel_integration_test:deps.bzl", "bazel_integration_test_rules_dependencies") | ||
|
||
bazel_integration_test_rules_dependencies() | ||
|
||
load("@cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies") | ||
|
||
bazel_starlib_dependencies() | ||
|
||
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") | ||
|
||
bazel_skylib_workspace() | ||
|
||
load("@rules_bazel_integration_test//bazel_integration_test:defs.bzl", "bazel_binaries") | ||
|
||
bazel_binaries(versions = ["//:.bazelversion"]) | ||
|
||
# MARK: - rules_swift and swift_bazel | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
http_archive( | ||
name = "rules_swift_package_manager", | ||
sha256 = "17319e76637ecfd0f8f8081fa9d08feec225f883170b6bd55ad1a4182dfb5466", | ||
urls = [ | ||
"https://github.com/cgrindel/rules_swift_package_manager/releases/download/v0.43.0/rules_swift_package_manager.v0.43.0.tar.gz", | ||
], | ||
) | ||
|
||
load("@rules_swift_package_manager//:deps.bzl", "swift_bazel_dependencies") | ||
|
||
swift_bazel_dependencies() | ||
|
||
http_archive( | ||
name = "build_bazel_rules_swift", | ||
sha256 = "5bb49e7a1764f3f227677c572d6487b5bfeb2613eaaae2a82b240d9b836a0b4e", | ||
url = "https://github.com/bazelbuild/rules_swift/releases/download/2.3.1/rules_swift.2.3.1.tar.gz", | ||
) | ||
|
||
load("//:swift_deps.bzl", "swift_dependencies") | ||
|
||
# gazelle:repository_macro swift_deps.bzl%swift_dependencies | ||
swift_dependencies() | ||
|
||
load( | ||
"@build_bazel_rules_swift//swift:repositories.bzl", | ||
"swift_rules_dependencies", | ||
) | ||
|
||
swift_rules_dependencies() | ||
|
||
load( | ||
"@build_bazel_rules_swift//swift:extras.bzl", | ||
"swift_rules_extra_dependencies", | ||
) | ||
|
||
swift_rules_extra_dependencies() | ||
|
||
# MARK: - Gazelle | ||
|
||
# gazelle:repo bazel_gazelle | ||
|
||
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") | ||
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() | ||
|
||
go_rules_dependencies() | ||
|
||
go_register_toolchains(version = "1.19.1") | ||
|
||
gazelle_dependencies() |
17 changes: 16 additions & 1 deletion
17
examples/custom_test_runner/integration_tests/workspace/WORKSPACE
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 +1,16 @@ | ||
# Intentionally blank. | ||
workspace(name = "test_workspace") | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
http_archive( | ||
name = "rules_shell", | ||
sha256 = "d8cd4a3a91fc1dc68d4c7d6b655f09def109f7186437e3f50a9b60ab436a0c53", | ||
strip_prefix = "rules_shell-0.3.0", | ||
url = "https://github.com/bazelbuild/rules_shell/releases/download/v0.3.0/rules_shell-v0.3.0.tar.gz", | ||
) | ||
|
||
load("@rules_shell//shell:repositories.bzl", "rules_shell_dependencies", "rules_shell_toolchains") | ||
|
||
rules_shell_dependencies() | ||
|
||
rules_shell_toolchains() |
15 changes: 14 additions & 1 deletion
15
examples/env_var_with_rootpath/sample_workspace/WORKSPACE.bazel
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 +1,14 @@ | ||
# Intentionally blank. | ||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
http_archive( | ||
name = "rules_shell", | ||
sha256 = "d8cd4a3a91fc1dc68d4c7d6b655f09def109f7186437e3f50a9b60ab436a0c53", | ||
strip_prefix = "rules_shell-0.3.0", | ||
url = "https://github.com/bazelbuild/rules_shell/releases/download/v0.3.0/rules_shell-v0.3.0.tar.gz", | ||
) | ||
|
||
load("@rules_shell//shell:repositories.bzl", "rules_shell_dependencies", "rules_shell_toolchains") | ||
|
||
rules_shell_dependencies() | ||
|
||
rules_shell_toolchains() |
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 +1,42 @@ | ||
# Intentionally blank. | ||
workspace(name = "simple_example") | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
http_archive( | ||
name = "rules_shell", | ||
sha256 = "d8cd4a3a91fc1dc68d4c7d6b655f09def109f7186437e3f50a9b60ab436a0c53", | ||
strip_prefix = "rules_shell-0.3.0", | ||
url = "https://github.com/bazelbuild/rules_shell/releases/download/v0.3.0/rules_shell-v0.3.0.tar.gz", | ||
) | ||
|
||
load("@rules_shell//shell:repositories.bzl", "rules_shell_dependencies", "rules_shell_toolchains") | ||
|
||
rules_shell_dependencies() | ||
|
||
rules_shell_toolchains() | ||
|
||
http_archive( | ||
name = "cgrindel_bazel_starlib", | ||
sha256 = "43e375213dabe0c3928e65412ea7ec16850db93285c8c6f8b0eaa41cacd0f882", | ||
urls = [ | ||
"https://github.com/cgrindel/bazel-starlib/releases/download/v0.21.0/bazel-starlib.v0.21.0.tar.gz", | ||
], | ||
) | ||
|
||
load("@cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies") | ||
|
||
bazel_starlib_dependencies() | ||
|
||
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") | ||
|
||
bazel_skylib_workspace() | ||
|
||
# Buildifier Dependencies | ||
|
||
load("@buildifier_prebuilt//:deps.bzl", "buildifier_prebuilt_deps") | ||
|
||
buildifier_prebuilt_deps() | ||
|
||
load("@buildifier_prebuilt//:defs.bzl", "buildifier_prebuilt_register_toolchains") | ||
|
||
buildifier_prebuilt_register_toolchains() |