Skip to content

Commit 57d3e14

Browse files
authored
Fix Bazel 7 support (#222)
1 parent e723fef commit 57d3e14

File tree

4 files changed

+44
-3
lines changed

4 files changed

+44
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,47 @@ jobs:
8383
run: bazel $env:BAZEL_STARTUP_FLAGS test //...
8484
if: startswith(runner.os, 'Windows')
8585

86+
ci-min-bazel:
87+
runs-on: ${{ matrix.os }}
88+
strategy:
89+
matrix:
90+
include:
91+
- os: macos-14
92+
- os: ubuntu-22.04
93+
- os: ubuntu-24.04-arm
94+
- os: windows-latest
95+
steps:
96+
# Checkout the code
97+
- uses: actions/checkout@v4
98+
99+
- uses: bazel-contrib/[email protected]
100+
with:
101+
bazelisk-cache: true
102+
disk-cache: ${{ github.workflow }}
103+
repository-cache: true
104+
105+
- name: Setup Bazelrc (Windows)
106+
run: |
107+
echo "startup --output_user_root=C:/bzl" > ./user.bazelrc
108+
if: startswith(runner.os, 'Windows')
109+
- name: Setup Bazelrc
110+
run: |
111+
echo "common --config=strict" >> ./user.bazelrc
112+
echo "common --keep_going" >> ./user.bazelrc
113+
114+
# Build and Test the code
115+
- name: Test (Unix)
116+
run: bazel ${BAZEL_STARTUP_FLAGS[@]} test //...
117+
if: startswith(runner.os, 'Windows') != true
118+
env:
119+
USE_BAZEL_VERSION: 7.x
120+
- name: Test (Windows)
121+
run: bazel $env:BAZEL_STARTUP_FLAGS test //...
122+
if: startswith(runner.os, 'Windows')
123+
env:
124+
USE_BAZEL_VERSION: 7.x
125+
126+
86127
ci-buildifier:
87128
runs-on: ubuntu-latest
88129
steps:

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module(
44
name = "rules_helm",
5-
version = "0.20.0",
5+
version = "0.20.1",
66
compatibility_level = 1,
77
)
88

helm/private/repositories.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _helm_toolchain_repository_impl(repository_ctx):
3838
results = repository_ctx.download_and_extract(
3939
repository_ctx.attr.urls,
4040
integrity = repository_ctx.attr.integrity,
41-
strip_prefix = repository_ctx.attr.strip_prefix,
41+
stripPrefix = repository_ctx.attr.strip_prefix,
4242
)
4343

4444
if repository_ctx.attr.platform.startswith("windows"):

version.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
""" Version info for the `rules_helm` repository """
22

3-
VERSION = "0.20.0"
3+
VERSION = "0.20.1"

0 commit comments

Comments
 (0)