Skip to content

"component pack" command creates a malformed tgz achive (PACMAN-1195) #98

@PolarGoose

Description

@PolarGoose

The Component Manager version

2.4.2

ESP-IDF Version

none

python Version

3.13.9

Operating System

Windows or Linux

Browser (for https://components.espressif.com Issues)

No response

Description

The following command on Windows or Linux:
py -m idf_component_manager component pack
Produces a tgz archive that contains a folder with an empty name:
test_archive.tgz

ChatGPT says the following about this:

It contains a directory entry whose name is the absolute path / (root). Many tools reject or warn about archives with absolute paths for security reasons, which can make extraction fail or behave strangely.

Such archives also fail to open in tools like Directory Opus: Tgz archive can't be opened

To Reproduce

On Windows or Linux:
* Open any folder with an ESP-IDF component
* Run `py -m idf_component_manager component pack`
* Check the resulting `tgz` file.

Expected behaviour

It should produce a correct tgz file.

Additional info

No response

I have checked existing issues and online Documentation

  • I confirm I have checked existing issues and online Documentation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions