summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-07-08 10:29:05 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-07-08 17:18:20 +0200
commitb9880e8ecdce02f047dfb1d19de5f1ed07a82ac6 (patch)
tree15590ac7a8ac0c5fbf052e47ae80c9382f88e489 /share
parentbf159b19daf72627de01987cfbb12461705a5f22 (diff)
downloadjustbuild-b9880e8ecdce02f047dfb1d19de5f1ed07a82ac6.tar.gz
In install-cas be more liberal in parsing artifact identifiers
Diffstat (limited to 'share')
-rw-r--r--share/man/just.1.org21
1 files changed, 18 insertions, 3 deletions
diff --git a/share/man/just.1.org b/share/man/just.1.org
index c66c1c62..1f1d2e07 100644
--- a/share/man/just.1.org
+++ b/share/man/just.1.org
@@ -182,9 +182,24 @@ rule definition can also reside in a git-tree root.
** install-cas
-~install-cas~ fetches artifacts from CAS (Content Addressable Storage)
-by means of their object identifier with the format
-~[<hash>:<size>:<type>]~. Depending on whether the output path is set
+~install-cas~ fetches artifacts from CAS (Content Addressable
+Storage) by means of their object identifier. The canonical format
+of an object identifier is ~[<hash>:<size>:<type>]~; however, when
+parsing an object identifier, ~install-cas~ uses the following
+default rules, to make usage more simple.
+- The square brackets are optional.
+- If the size is missing (e.g., because the argument contains no
+ colon), or cannot be parsed as a number, this is not an error,
+ and the value ~0~ is assumed. While this is almost never the
+ correct size, many CAS implementations, including the local CAS
+ of just itself, ignore the size for lookups.
+- From the type, only the first letter (~f~ for non-executable
+ file, ~x~ for executable file, and ~t~ for tree) is significant;
+ the rest is ignored. If the type is missing (e.g., because the
+ argument contains less than two colons), or its first letter is
+ not one of the valid ones, ~f~ is assumed.
+
+Depending on whether the output path is set
or not, the behavior is different.
*** Output path is omitted