Skip to content

Commit 1e6557b

Browse files
Remove CI tests for versioned releases of Bazel and dependencies.
Unfortunately, the team maintaining this repository does not have the resources to keep the versioned releases up to date. Going forward, the recommended approach for depending on this repository is to select a specific commit and to use the `git_repository` WORKSPACE rule available in `@bazel_tools//tools/build_defs/repo:git.bzl`. RELNOTES: None PiperOrigin-RevId: 274255348
1 parent ff3b4b6 commit 1e6557b

File tree

4 files changed

+18
-83
lines changed

4 files changed

+18
-83
lines changed

.bazelci/presubmit.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,44 +25,16 @@ x_defaults:
2525
test_targets: *linux_targets
2626

2727
tasks:
28-
macos_latest:
29-
name: "Latest Bazel"
30-
bazel: latest
31-
<<: *mac_common
32-
3328
macos_last_green:
3429
name: "Last Green Bazel"
3530
bazel: last_green
3631
<<: *mac_common
3732

38-
macos_latest_head_deps:
39-
name: "Latest Bazel with Head Deps"
40-
bazel: latest
41-
shell_commands:
42-
# Update the WORKSPACE to use head versions of some deps to ensure nothing
43-
# has landed on them breaking this project.
44-
- .bazelci/update_workspace_to_deps_heads.sh
45-
<<: *mac_common
46-
47-
ubuntu1804_latest:
48-
name: "Latest Bazel"
49-
bazel: latest
50-
<<: *linux_common
51-
5233
ubuntu1804_last_green:
5334
name: "Last Green Bazel"
5435
bazel: last_green
5536
<<: *linux_common
5637

57-
ubuntu1804_latest_head_deps:
58-
name: "Latest Bazel with Head Deps"
59-
bazel: latest
60-
shell_commands:
61-
# Update the WORKSPACE to use head versions of some deps to ensure nothing
62-
# has landed on them breaking this project.
63-
- .bazelci/update_workspace_to_deps_heads.sh
64-
<<: *linux_common
65-
6638
buildifier:
6739
version: latest
6840
# Disable 'bzl-visibility' since it doesn't work properly.

.bazelci/update_workspace_to_deps_heads.sh

Lines changed: 0 additions & 45 deletions
This file was deleted.

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,23 @@ replacing the `urls` and `sha256` attributes with the values from the release
4747
you wish to depend on:
4848

4949
```python
50+
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
5051
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
5152

52-
http_archive(
53+
# rules_swift and apple_support no longer support releases. If you'd like to pin
54+
# down these dependencies to a specific commit, please add the following to the
55+
# top of your WORKSPACE, using the commit you'd like to pin for each of the
56+
# repositories.
57+
git_repository(
5358
name = "build_bazel_rules_swift",
54-
sha256 = "96a86afcbdab215f8363e65a10cf023b752e90b23abf02272c4fc668fcb70311",
55-
urls = [
56-
"https://github.com/bazelbuild/rules_swift/releases/download/0.11.1/rules_swift.0.11.1.tar.gz",
57-
],
59+
remote = "https://github.com/bazelbuild/rules_swift.git",
60+
commit = "[SOME_HASH_VALUE]",
61+
)
62+
63+
git_repository(
64+
name = "build_bazel_apple_support",
65+
remote = "https://github.com/bazelbuild/apple_support.git",
66+
commit = "[SOME_HASH_VALUE]",
5867
)
5968

6069
load(

swift/repositories.bzl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
"""Definitions for handling Bazel repositories used by the Swift rules."""
1616

17+
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
1718
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1819
load(
1920
"@build_bazel_rules_swift//swift/internal:swift_autoconfiguration.bzl",
@@ -48,12 +49,10 @@ def swift_rules_dependencies():
4849
)
4950

5051
_maybe(
51-
http_archive,
52+
git_repository,
5253
name = "build_bazel_apple_support",
53-
urls = [
54-
"https://github.com/bazelbuild/apple_support/releases/download/0.7.2/apple_support.0.7.2.tar.gz",
55-
],
56-
sha256 = "9114c452eee622598cf9cdc90ecb12b06af7f914f33440b26deba9a9704d450c",
54+
remote = "https://github.com/bazelbuild/apple_support.git",
55+
branch = "master",
5756
)
5857

5958
_maybe(

0 commit comments

Comments
 (0)