1
0
mirror of https://github.com/golang/go synced 2024-11-17 12:04:43 -07:00

cmd/go/internal/script: Cmp() should not perform environment substitutions

This is an oversight from https://go-review.googlesource.com/c/go/+/419875,
where script commands were refactored and factored out to a new package.

For #27494.

Change-Id: Ie606cab39f60859ee1da5165dcc94c8470c94325
Reviewed-on: https://go-review.googlesource.com/c/go/+/447575
Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
qmuntal 2022-11-03 15:30:42 +01:00 committed by Gopher Robot
parent e81263c791
commit 3e3a8fe5be

View File

@ -188,7 +188,7 @@ func Cmp() Cmd {
}, },
}, },
func(s *State, args ...string) (WaitFunc, error) { func(s *State, args ...string) (WaitFunc, error) {
return nil, doCompare(s, true, args...) return nil, doCompare(s, false, args...)
}) })
} }