Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport: fix(tools): Restore file permissions when extracting zip on unix (IDFGH-13773) #14633

Closed

Conversation

elipsitz
Copy link

@elipsitz elipsitz commented Sep 26, 2024

Description

Backport 562bb67 to release/v5.1.

This is needed because f449357 added zip files for a tool (Ninja) on Linux/Mac to release/v5.1, but the fix to tools/idf_tools.py is only in v5.2 and beyond.

Related

Testing


Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

@CLAassistant
Copy link

CLAassistant commented Sep 26, 2024

CLA assistant check
All committers have signed the CLA.

@elipsitz elipsitz force-pushed the backport-zip-permissions branch from 32e7965 to 59f7f8d Compare September 26, 2024 03:50
@espressif-bot espressif-bot added the Status: Opened Issue is new label Sep 26, 2024
@github-actions github-actions bot changed the title Backport: fix(tools): Restore file permissions when extracting zip on unix Backport: fix(tools): Restore file permissions when extracting zip on unix (IDFGH-13773) Sep 26, 2024
@mfialaf
Copy link
Collaborator

mfialaf commented Sep 27, 2024

Hi @elipsitz, thank you for the contribution. You are right, the file permission must be restored, when it is used like this. I'll take a closer look. Thank you.

@espressif-bot espressif-bot added Status: Selected for Development Issue is selected for development Status: Reviewing Issue is being reviewed and removed Status: Opened Issue is new Status: Selected for Development Issue is selected for development labels Sep 30, 2024
@mfialaf
Copy link
Collaborator

mfialaf commented Oct 2, 2024

Thank you again @elipsitz for noticing us about the bug. We'll change the file format from .zip to .tar.gz which keeps the file permissions. I am sorry for the inconvenience.

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Reviewing Issue is being reviewed labels Nov 1, 2024
espressif-bot pushed a commit that referenced this pull request Nov 6, 2024
Changed the download file format for ninja tool from github with .zip file format
to dl.espressif.com with .tar.gz file format.

Closes #14633
espressif-bot pushed a commit that referenced this pull request Nov 19, 2024
Changed the download file format for ninja tool from github with .zip file format
to dl.espressif.com with .tar.gz file format.

Closes #14633
@Alvin1Zhang
Copy link
Collaborator

Thanks for contribution again, changes have been merged with 8e11bd5.

@Alvin1Zhang Alvin1Zhang closed this Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants