Change set +x
to set -x
in CI wasm
steps
#2094
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These steps benefit from showing the
cargo
command that was run before the resulting build output. Most run multiplecargo build
commands, sometimes in a loop, such that the output can only be properly understood if the commands are shown.set +x
is the default (in general, as well as in GitHub Actions unless the value ofshell
is modified with-x
or-o xtrace
). It looks likeset -x
was already intended here. Work in #2093 confirms a practical benefit of-x
for understanding these logs.set +x
was part of the original code of these CI steps when they were introduced in 0d4b804 (#735). Its use was preserved and expanded in several changes. In 44ff412 (#1668),set +x
was preserved and also positioned where it would make sense forset -x
to be. Thus, it appears this started as a small typo and gradually expanded through misreadings, including my own. This fixes that.(See EliahKagan#74 for verification that
set +x
had no effect.)This is its own PR rather than being done as part of #2093, because this already confers a benefit, whereas I don't know if or when #2093 will be ready.