Closed tcharding closed 2 weeks ago
Using $PWD
like that will mean that the script doesn't work if it's run from the wrong directory. I think we have an env var set somewhere already which uses git rev-parse --show-toplevel
or something to orient our scripts around a fixed directory.
I'll come back to this after #11 merges.
The commit hash from this branch is now used in https://github.com/rust-bitcoin/rust-bitcoin/pull/3201 to verify this works using CI.
Shall we give @Kixunil a chance to take a look, especially since I copied his code to get the looping to work?
However I wonder why a global variable is used and why isn't the command to obtain the list of crates ran by this script.
It would be nice if it would default to using the command-generated list of crates (and same for a feature matrix) but we'll definitely want a way to override the command for some repos, at least temporarily.
Also Kix ought to be a maintainer on this repo.
Repos using the
run_task
script would like to set theCRATES
env var by usingI don't know exactly why but this results in some sort of square braces data type that seems to only work in a loop using
for crate in $CRATES
instead of thefor crate in ${CRATES[@]}
like we currently have.