Skip to content

Commit 892cd32

Browse files
committed
Don't use leading ./ when there is another /
This changes paths that are excuted by a shell in a `justfile` to omit the leading `./` when the path already has a `/` later. A path like `./a` is needed to run `a` from the current directory, but `./a/b` is just a longer way to express `a/b`, since `a/b` already has a `/` in it. It is the presence of a `/`, rather than the presence of a leading `./` specifically, that causes paths to be looked up relative to the current directory rather than by a `PATH` search. The reason to make this change is that a few of the commands that use those paths are about to get a bit more complicated. It is hoped that removing this small amount of noise, though currently inconsequential, will allow the immediately forthcoming change to be made while preserving readability.
1 parent 47479f1 commit 892cd32

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

justfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,29 +201,29 @@ it := quote(target_dir / 'debug/it')
201201
journey-tests:
202202
cargo build --features http-client-curl-rustls
203203
cargo build -p gix-testtools --bin jtt
204-
./tests/journey.sh {{ ein }} {{ gix }} {{ jtt }} max
204+
tests/journey.sh {{ ein }} {{ gix }} {{ jtt }} max
205205

206206
# run journey tests (max-pure)
207207
journey-tests-pure:
208208
cargo build --no-default-features --features max-pure
209209
cargo build -p gix-testtools --bin jtt
210-
./tests/journey.sh {{ ein }} {{ gix }} {{ jtt }} max-pure
210+
tests/journey.sh {{ ein }} {{ gix }} {{ jtt }} max-pure
211211

212212
# run journey tests (small)
213213
journey-tests-small:
214214
cargo build --no-default-features --features small
215215
cargo build -p gix-testtools
216-
./tests/journey.sh {{ ein }} {{ gix }} {{ jtt }} small
216+
tests/journey.sh {{ ein }} {{ gix }} {{ jtt }} small
217217

218218
# run journey tests (lean-async)
219219
journey-tests-async:
220220
cargo build --no-default-features --features lean-async
221221
cargo build -p gix-testtools
222-
./tests/journey.sh {{ ein }} {{ gix }} {{ jtt }} async
222+
tests/journey.sh {{ ein }} {{ gix }} {{ jtt }} async
223223

224224
# Run cargo-diet on all crates to see that they are still in bound
225225
check-size:
226-
./etc/check-package-size.sh
226+
etc/check-package-size.sh
227227

228228
# Check the minimal support rust version for currently installed Rust version
229229
ci-check-msrv:
@@ -264,4 +264,4 @@ check-mode:
264264

265265
# Delete gix-packetline-blocking/src and regenerate from gix-packetline/src
266266
copy-packetline:
267-
./etc/copy-packetline.sh
267+
etc/copy-packetline.sh

0 commit comments

Comments
 (0)