Skip to content

Commit 33e3e99

Browse files
committed
Merge branch 'main' into ptools
2 parents 82beb57 + 0343f01 commit 33e3e99

File tree

3 files changed

+16
-37
lines changed

3 files changed

+16
-37
lines changed

.bazelci/examples_naming.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,3 @@ tasks:
1616
windows:
1717
platform: windows
1818
<<: *common
19-
bzlmod:
20-
name: bzlmod
21-
platform: ubuntu2204
22-
build_flags:
23-
- "--enable_bzlmod"
24-
<<: *common

.bazelci/tests.yml

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
common: &common
1212
working_directory: ..
1313

14-
bzlmod: &bzlmod
15-
build_flags:
16-
- "--enable_bzlmod"
17-
1814
nobzlmod: &nobzlmod
1915
build_flags:
2016
- "--noenable_bzlmod"
@@ -81,23 +77,15 @@ windows: &windows
8177
# Finally, the cross product of bazel releases X platforms
8278
#
8379
tasks:
84-
ub_head_bzlmod:
85-
name: ub_head_bzlmod
86-
bazel: latest
87-
<<: *ubuntu
88-
<<: *bzlmod
89-
90-
ub_head_nobzlmod:
91-
name: ub_head_nobzlmod
80+
ub_head:
81+
name: ub_head
9282
bazel: latest
9383
<<: *ubuntu
94-
<<: *nobzlmod
9584

96-
ub_lts_bzlmod:
97-
name: ub_lts_bzlmod
85+
ub_lts:
86+
name: ub_lts
9887
bazel: latest
9988
<<: *ubuntu
100-
<<: *bzlmod
10189

10290
ub_lts_nobzlmod:
10391
name: ub_lts_nobzlmod
@@ -116,35 +104,31 @@ tasks:
116104
bazel: latest
117105
<<: *centos
118106

119-
mac_head_bzlmod:
120-
name: mac_head_bzlmod
107+
mac_head:
108+
name: mac_head
121109
bazel: latest
122110
<<: *macos
123-
<<: *bzlmod
124111

125-
mac_lts_bzlmod:
126-
name: mac_lts_bzlmod
112+
mac_lts:
113+
name: mac_lts
127114
bazel: latest
128115
<<: *macos
129-
<<: *bzlmod
130116

131117
mac_lts_nobzlmod:
132118
name: mac_lts_nobzlmod
133119
bazel: latest
134120
<<: *macos
135121
<<: *nobzlmod
136122

137-
win_head_bzlmod:
138-
name: win_head_bzlmod
123+
win_head:
124+
name: win_head
139125
bazel: latest
140126
<<: *windows
141-
<<: *bzlmod
142127

143-
win_lts_bzlmod:
144-
name: win_lts_bzlmod
128+
win_lts:
129+
name: win_lts
145130
bazel: latest
146131
<<: *windows
147-
<<: *bzlmod
148132

149133
win_lts_nobzlmod:
150134
name: win_lts_nobzlmod

distro/packaging_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ def CopyTestFile(source_name, dest_name):
9797
def _select_bazel_supported_setup(self):
9898
output = subprocess.check_output(['bazel', 'version'], text=True)
9999
major_version = re.search(r'Build label:\s+(\d+)', output)
100-
if major_version and int(major_version.group(1)) >= 9:
101-
return 'MODULE.bazel', self._module_bazel_lines, []
102-
return 'WORKSPACE', self._workspace_lines, ['--enable_workspace']
100+
# Module support was not the default at 7
101+
if major_version and int(major_version.group(1)) <= 7:
102+
return 'WORKSPACE', self._workspace_lines, ['--enable_workspace']
103+
return 'MODULE.bazel', self._module_bazel_lines, []
103104

104105
def _module_bazel_lines(self, local_path, sha256):
105106
return (

0 commit comments

Comments
 (0)