Closed miha-plesko closed 7 years ago
@gberginc the package that I was testing backwards compatibility with was eu.mikelangelo-project.osv.bootstrap
and it worked even without this patch. But today I tested with eu.mikelangelo-project.app.node-4.4.5
and it complained about invalid tar header.
Please close & reopen this PR to rerun travis with only 1.7+ Go support.
Green
Thanks @miha-plesko!
Capstan supports both
tar.gz
-ed andtar
-ed MPM packages. I came across a bug testing this: some tar packages couldn't be untarred properly. Turns out that tar.gz reader spoiled input stream offset when trying to decompress so falling back to tar reader didn't work correctly. Fixed by explicitly setting stream offset back to 0.