src-d / datasets

source{d} datasets ("big code") for source code analysis and machine learning on source code
Other
323 stars 82 forks source link

panic: runtime error: slice bounds out of range #41

Closed bzz closed 6 years ago

bzz commented 6 years ago

Our official example from the documentation https://github.com/src-d/datasets/tree/master/PublicGitArchive/pga#downloading-siva-files results in a panic.

Steps to reproduce:

pga list -u github.com/src-d/ -f json | jq -r 'select(.fileCount > 50) | .sivaFilenames[]' | pga get -i -o repositories

Expected: downloading files to ./repositories starts. Actual: panic.

May be relevant to -i option, as noted in https://github.com/src-d/datasets/issues/33#issuecomment-371986544.

Update:

echo "cce947b98a050c6d356bc6ba95030254914027b1.siva" | pga get -i results in the same

downloading siva files by name from stdin
filter flags will be ignored
panic: runtime error: slice bounds out of range
bzz commented 6 years ago

Initial fix in #31

bzz commented 6 years ago

fixed on latest master