Skip to content

Add a package without the .git directory in the release (IDFGH-16649) #17748

@seven1oe

Description

@seven1oe

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

What would be the impact of directly deleting the .git folder? I can successfully compile my sample project.

According to the following code, the current release already includes submodules that need to be cloned.
https://github.com/espressif/release-zips-action/blob/9864356882efa14f8efbe9fcffa23734aa2f7471/release_zips/release_zips.py#L13

Directly removing the .git folder can reduce the total size of the idf directory to around 400MB, and after compression, it can be further reduced to about 100MB, making it more convenient for transfer and storage (e.g., in CI).

Is it possible to add a package without the .git directory in the release?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions