Skip to content

Pio pkg publish is including generated files #5160

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

Open
Levi--G opened this issue May 12, 2025 · 1 comment
Open

Pio pkg publish is including generated files #5160

Levi--G opened this issue May 12, 2025 · 1 comment

Comments

@Levi--G
Copy link

Levi--G commented May 12, 2025

I noticed while updating my library that pio pkg publish is including the .vscode folder under the project examples, even though these are in the .gitignore and should not be included.

These files contain user names, file names and other generated data and should not be part of the library upload.

I suggest either:

  • checking the .gitignore and respecting the same ignores
  • adding an exclude option to the cli
  • Providing other means to upload without having these files included

Thank you.

@Levi--G
Copy link
Author

Levi--G commented May 12, 2025

I found the issue in https://github.com/platformio/platformio-core/blob/develop/platformio/package/pack.py

EXCLUDE_DEFAULT contains ".pio/", "**/.pio/" as expected for this folder and subfolders, but ".vscode" is just the top folder, it needs to add "**/.vscode" to include subfolders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants