Skip to content

Commit 1170995

Browse files
committed
chore: upgrade bazelisk to 1.27
1 parent 1a16dfa commit 1170995

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/aspect-build/aspect-gazelle/language/orion v0.0.0-20251030042747-8e32503a9ac1
1010
github.com/aspect-build/aspect-gazelle/runner v0.0.0-20251030042747-8e32503a9ac1
1111
github.com/bazelbuild/bazel-gazelle v0.46.0-rc2
12-
github.com/bazelbuild/bazelisk v1.26.0 // NOTE: keep vendored code in sync
12+
github.com/bazelbuild/bazelisk v1.27.0 // NOTE: keep vendored code in sync
1313
github.com/bazelbuild/buildtools v0.0.0-20250930140053-2eb4fccefb52
1414
github.com/bluekeyes/go-gitdiff v0.7.3
1515
github.com/bmatcuk/doublestar/v4 v4.9.1 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ github.com/bazel-contrib/rules_python/gazelle v0.0.0-20251012075144-43a5acf8cedf
4545
github.com/bazel-contrib/rules_python/gazelle v0.0.0-20251012075144-43a5acf8cedf/go.mod h1:84dcq5fZ/hiQGnpjzH57+Xm7T6uwpPty1KPB7qzHDO0=
4646
github.com/bazelbuild/bazel-gazelle v0.46.0-rc2 h1:opKbd+Bj7ZKtlYJF1JqE9W4OVDvFEZogj2ncVtrLpOU=
4747
github.com/bazelbuild/bazel-gazelle v0.46.0-rc2/go.mod h1:8Ozf20jhv+in87nCUHdmUPPcVGTfKg/gotZ/hce3T+w=
48-
github.com/bazelbuild/bazelisk v1.26.0 h1:LvPtflqF7p+gjfdp491hqVWtu4+S/7yW9Yz2Xj4KzQk=
49-
github.com/bazelbuild/bazelisk v1.26.0/go.mod h1:te9bGfPtIk03+J52OwFXVJ2Laf9O0v7xphPTWWt9Flk=
48+
github.com/bazelbuild/bazelisk v1.27.0 h1:X9m5b68QeLJm4JQLrJaFKDMCl91MFEG9zDtm+S+syLM=
49+
github.com/bazelbuild/bazelisk v1.27.0/go.mod h1:4QvGQZjg1BT9GTBh5eBTVBzTyigu3ZWA5FArOoOTq4g=
5050
github.com/bazelbuild/buildtools v0.0.0-20250930140053-2eb4fccefb52 h1:njQAmjTv/YHRm/0Lfv9DXHFZ4MdT2IA/RKHTnqZkgDw=
5151
github.com/bazelbuild/buildtools v0.0.0-20250930140053-2eb4fccefb52/go.mod h1:PLNUetjLa77TCCziPsz0EI8a6CUxgC+1jgmWv0H25tg=
5252
github.com/bazelbuild/rules_go v0.56.1 h1:YOyW1J8kdvJl1AzlWrR+qikC6EPiFVbT4l1gjTBfXT0=

pkg/bazel/bazelisk-core.go

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
// VENDORED https://github.com/bazelbuild/bazelisk/blob/v1.26.0/core/core.go
1+
/*
2+
* Copyright 2023 Aspect Build Systems, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// VENDORED https://github.com/bazelbuild/bazelisk/blob/v1.27.0/core/core.go
218
//
319
// Minor changes made to align with the ./bazelisk.go API, which is a mix of custom code
420
// and vendored code significantly different then the origin bazelisk/core/core.go.
@@ -357,7 +373,7 @@ func (bazelisk *Bazelisk) maybeDelegateToWrapper(bazel string, config config.Con
357373
func prependDirToPathList(cmd *exec.Cmd, dir string) {
358374
found := false
359375
for idx, val := range cmd.Env {
360-
splits := strings.Split(val, "=")
376+
splits := strings.SplitN(val, "=", 2)
361377
if len(splits) != 2 {
362378
continue
363379
}

0 commit comments

Comments
 (0)