Skip to content

Commit 327bbf6

Browse files
redsun82Copilot
andcommitted
Just: state the version these recipes actually need
The floor was given as 1.58 on the grounds that `set lists` did not exist before then. It did: `set lists`, list literals, `++` and variadic parameters that pass their elements on one at a time all arrived together in 1.53, which is the whole of what the forwarding depends on. Checked by running the tree under both: every justfile here parses and evaluates under 1.53 and none does under 1.52. Lists being unstable is a separate fact that has not changed, and is what `set unstable` is for, so that part of the reason moved rather than went away. The error an older `just` gives was also wrong. `Unknown setting` is what `defs.just` produces when read on its own; anything importing it dies earlier, on the first list literal, complaining about an unexpected `[` and saying nothing about versions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent a7fb6e0 commit 327bbf6

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎misc/just/README.md‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ have common verbs (`build`, `test`, `format`, `lint`, `generate`) that individua
44
of the project can implement, and some common functionality that can be used to that
55
effect.
66

7-
`just` 1.58 or newer is required: recipes forward argument lists using `set lists`, which
8-
is still unstable and did not exist before then. An older one stops with an
9-
`Unknown setting` error pointing at that line, which is clear enough but does not say
10-
which version to move to.
7+
`just` 1.53 or newer is required. Recipes forward argument lists rather than encoding
8+
them as whitespace separated strings, and every piece of that arrived in that one
9+
release: `set lists`, list literals, the `++` operator, and variadic parameters that pass
10+
their elements on one at a time rather than space-joined. Lists are still unstable, at
11+
1.58 as much as at 1.53, which is what `set unstable` in `defs.just` is for. An older
12+
`just` stops at the first list literal it parses, complaining about an unexpected `[` and
13+
saying nothing about versions; only `defs.just` read on its own gives the clearer
14+
`unknown setting` naming `lists`.
1115

1216
# Forwarding
1317

0 commit comments

Comments
 (0)