From 46143ea7957f5611e1f325d0c99a030b4c5e97ca Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Wed, 26 Jan 2022 14:38:35 +0000 Subject: [PATCH] initial whining about --batch-keys and --all --- ...d_error_on_whereis_--batch-keys_--all.mdwn | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/bugs/should_error_on_whereis_--batch-keys_--all.mdwn diff --git a/doc/bugs/should_error_on_whereis_--batch-keys_--all.mdwn b/doc/bugs/should_error_on_whereis_--batch-keys_--all.mdwn new file mode 100644 index 0000000000..09d403bbce --- /dev/null +++ b/doc/bugs/should_error_on_whereis_--batch-keys_--all.mdwn @@ -0,0 +1,23 @@ +### Please describe the problem. + +AFAIK `--all` option for `whereis` is "incompatible" with operation on keys, so `git-annex` does still error out on `--all --key KEY`: + +``` +$> git annex whereis --json --json-error-messages --key MD5E-s5663237--4608ffbd6b78ce3a325eb338fa556589.nii.gz --all +Invalid option `--all' +... +``` + +but it does not error out if I specify `--all` with `--batch-keys`: + +``` +$> git annex whereis --json --json-error-messages --all --batch-keys +MD5E-s5663237--4608ffbd6b78ce3a325eb338fa556589.nii.gz +{"command":"whereis","note":"2 copies\n\t8d2b6e96-ad81-44a5-99b4-0ec37d6b3800 -- [s3-PUBLIC]\n \tb5dd2e3d-825f-4bc2-b719-cba1059f6bfc -- root@93184394ac19:/datalad/ds000001\n\ns3-PUBLIC: https://s3.amazonaws.com/openneuro.org/ds000001/sub-01/anat/sub-01_T1w.nii.gz?versionId=SHOhSfza0LCFpgctRH3sMZ8iwAGSUwIy\n","success":true,"input":["MD5E-s5663237--4608ffbd6b78ce3a325eb338fa556589.nii.gz"],"untrusted":[],"key":"MD5E-s5663237--4608ffbd6b78ce3a325eb338fa556589.nii.gz","whereis":[{"here":false,"uuid":"8d2b6e96-ad81-44a5-99b4-0ec37d6b3800","urls":["https://s3.amazonaws.com/openneuro.org/ds000001/sub-01/anat/sub-01_T1w.nii.gz?versionId=SHOhSfza0LCFpgctRH3sMZ8iwAGSUwIy"],"description":"[s3-PUBLIC]"},{"here":false,"uuid":"b5dd2e3d-825f-4bc2-b719-cba1059f6bfc","urls":[],"description":"root@93184394ac19:/datalad/ds000001"}],"error-messages":[],"file":null} +^C +``` + + +### What version of git-annex are you using? On what operating system? + +`8.20211231+git140-gc3817495f-1~ndall+1`