Fix CI issue caused by new cli and outpack versions. #121
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.
Recent versions of the cli package have added a new
vec-sep2
style option forcli_vec
, in an effort to improve their handling of Oxford commas. This meansvec-last
is now ignored for any list of length two, and the value ofvec-sep2
is used instead.We only used that feature in one place, with "or" as the value for
vec-last
. The new cli package broke a test by making that code print the defaultvec-sep2
value, i.e. "and", when there are only two elements.After looking at the context of that message however, I think "and" actually makes more sense than "or". It is printing a list of paths that haven't been found. We would want all of the paths in the list to be present, not just one of them. The simplest fix is therefore to remove the call to
cli_vec
and let cli use the default settings.Finally, remove a call to
squote
on the missing paths and use a.path
tag in the message. The end result is the same.