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
# 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