cloudsmith/geppetto — Issue #283: Forge modules that contain a global pax header cannot be imported
Author: thallgren
Created: 2012-02-08 21:13:37+00:00
State: open

More recent tar files may contain a 'pax_global_header' that is added by the tar archiver. This header contains the Git commit-ID that was used when generating the tar-tree. THe Geppetto TarUtils treats this entry as if it was a file which has consequences for the forge import (it assumes that everything is beneath one top-level directory in the archive). When attempting to install a module like "dhoppe/apt", an exception is thrown:

```
java.io.IOException: Archive doesn't contain one single folder
at org.cloudsmith.geppetto.forge.util.TarUtils.unpack(TarUtils.java:159)
at org.cloudsmith.geppetto.forge.impl.ForgeImpl.install(ForgeImpl.java:378)
```