File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -788,7 +788,9 @@ repo](https://github.com/theupdateframework/specification/issues).
788
788
}
789
789
790
790
Each key of the TARGETS object is a TARGETPATH. A TARGETPATH is a path to
791
- a file that is relative to a mirror's base URL of targets.
791
+ a file that is relative to a mirror's base URL of targets. It should not
792
+ have a leading path separator to avoid surprising behavior when constructing
793
+ paths on disk.
792
794
793
795
It is allowed to have a TARGETS object with no TARGETPATH elements. This
794
796
can be used to indicate that no target files are available.
@@ -858,6 +860,8 @@ repo](https://github.com/theupdateframework/specification/issues).
858
860
match file paths "targets/foo.tgz" and "targets/bar.tgz", but not
859
861
"targets/foo.txt". Likewise, path pattern "foo-version-?.tgz" matches
860
862
"foo-version-2.tgz" and "foo-version-a.tgz", but not "foo-version-alpha.tgz".
863
+ It should not have a leading path separator to avoid surprising behavior when
864
+ constructing paths on disk.
861
865
862
866
Prioritized delegations allow clients to resolve conflicts between delegated
863
867
roles that share responsibility for overlapping target paths. To resolve
@@ -903,21 +907,21 @@ repo](https://github.com/theupdateframework/specification/issues).
903
907
],
904
908
"name": "project",
905
909
"paths": [
906
- "/ project/file3.txt"
910
+ "project/file3.txt"
907
911
],
908
912
"threshold": 1
909
913
}
910
914
]
911
915
},
912
916
"expires": "2030-01-01T00:00:00Z",
913
917
"targets": {
914
- "/ file1.txt": {
918
+ "file1.txt": {
915
919
"hashes": {
916
920
"sha256": "65b8c67f51c993d898250f40aa57a317d854900b3a04895464313e48785440da"
917
921
},
918
922
"length": 31
919
923
},
920
- "/file2.txt": {
924
+ "dir /file2.txt": {
921
925
"hashes": {
922
926
"sha256": "452ce8308500d83ef44248d8e6062359211992fd837ea9e370e561efb1a4ca99"
923
927
},
You can’t perform that action at this time.
0 commit comments