Skip to content

Commit

Permalink
chore: bump to Bazel 7.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Aug 20, 2024
1 parent abbbd54 commit d920701
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.2
7.3.1
3 changes: 0 additions & 3 deletions .github/workflows/ci.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ common --repository_cache=~/.cache/bazel-repository-cache
# Debug where options came from
common --announce_rc

# Allows tests to run bazelisk-in-bazel, since this is the cache folder used
common --test_env=XDG_CACHE_HOME

# Remote build execution
build:rbe --extra_execution_platforms=@aspect_bazel_lib//platforms:x86_64_linux_remote
build:rbe --host_platform=@aspect_bazel_lib//platforms:x86_64_linux_remote
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ jobs:
path: |
~/.cache/bazel-disk-cache
~/.cache/bazel-repository-cache
~/.cache/xdg-cache
key: bazel-cache-${{ matrix.bazel-version.version }}-${{ matrix.bzlmod }}-${{ matrix.os }}-${{ matrix.folder }}-${{ hashFiles('.bazelrc', '.bazelversion', '.bazeliskrc', '**/BUILD', '**/BUILD.bazel', '**/*.bzl', 'WORKSPACE', 'WORKSPACE.bazel', 'WORKSPACE.bzlmod', 'MODULE.bazel') }}
restore-keys: bazel-cache-${{ matrix.bazel-version.version }}-${{ matrix.bzlmod }}-${{ matrix.os }}-${{ matrix.folder }}-

Expand Down Expand Up @@ -173,8 +172,6 @@ jobs:
--build_tag_filters=-skip-on-bazel${{ matrix.bazel-version.major }} \
--enable_bzlmod=${{ matrix.bzlmod }} \
//...
env:
XDG_CACHE_HOME: ~/.cache/xdg-cache # bazelisk will download bazel to here
- name: Integration tests
# Don't run integration tests on Windows since they are bash scripts and Windows runs Powershell
Expand Down
11 changes: 10 additions & 1 deletion lib/private/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,16 @@ bzl_library(
srcs = [
"platform_utils.bzl",
"@local_config_platform//:constraints.bzl", # keep
],
"@platforms//host:constraints.bzl", # keep
] + (select({
"@aspect_bazel_lib//lib:bzlmod": [
"@@platforms~host_platform~host_platform//:constraints.bzl", # keep
],
"//conditions:default": [
"@host_platform//:constraints.bzl", # keep
"@internal_platforms_do_not_use//host:constraints.bzl", # keep
],
}) if is_bazel_7_or_greater() else []),
visibility = ["//lib:__subpackages__"],
deps = [], # keep
)
Expand Down

0 comments on commit d920701

Please sign in to comment.