You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The update-vendor.sh script needed some fixes to work with zsh on OSX.
Various binaries are expected to be GNU utils, which are not installed
by default on OSX. I've added suggestions to install ported binaries
using homebrew if they are not found in PATH.
Skip `shopt -s lastpipe` when `$BASH` is not defined.
# Propagate require entries to both require and replace
162
191
forgo_mod_extrain${GO_MOD_EXTRA_FILES};do
163
-
go mod edit -json ${go_mod_extra}| jq -r '.Require[]? | "-require \(.Path)@\(.Version)"'|xargs -t -r go mod edit >&${BASH_XTRACEFD}2>&1
164
-
go mod edit -json ${go_mod_extra}| jq -r '.Require[]? | "-replace \(.Path)=\(.Path)@\(.Version)"'|xargs -t -r go mod edit >&${BASH_XTRACEFD}2>&1
192
+
go mod edit -json ${go_mod_extra}| jq -r '.Require[]? | "-require \(.Path)@\(.Version)"'|$XARGS -t -r go mod edit >&${BASH_XTRACEFD}2>&1
193
+
go mod edit -json ${go_mod_extra}| jq -r '.Require[]? | "-replace \(.Path)=\(.Path)@\(.Version)"'|$XARGS -t -r go mod edit >&${BASH_XTRACEFD}2>&1
165
194
# And add explicit replace entries
166
-
go mod edit -json ${go_mod_extra}| jq -r '.Replace[]? | "-replace \(.Old.Path)=\(.New.Path)@\(.New.Version)"'|sed"s/@null//g"|xargs -t -r go mod edit >&${BASH_XTRACEFD}2>&1
195
+
go mod edit -json ${go_mod_extra}| jq -r '.Replace[]? | "-replace \(.Old.Path)=\(.New.Path)@\(.New.Version)"'|$SED"s/@null//g"|$XARGS -t -r go mod edit >&${BASH_XTRACEFD}2>&1
0 commit comments