diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-07-08 10:29:05 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-07-08 17:18:20 +0200 |
commit | b9880e8ecdce02f047dfb1d19de5f1ed07a82ac6 (patch) | |
tree | 15590ac7a8ac0c5fbf052e47ae80c9382f88e489 /share | |
parent | bf159b19daf72627de01987cfbb12461705a5f22 (diff) | |
download | justbuild-b9880e8ecdce02f047dfb1d19de5f1ed07a82ac6.tar.gz |
In install-cas be more liberal in parsing artifact identifiers
Diffstat (limited to 'share')
-rw-r--r-- | share/man/just.1.org | 21 |
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 |