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

espflash.toml mixes project configuration with environment #727

Open
chris-subtlebytes opened this issue Jan 19, 2025 · 0 comments
Open

Comments

@chris-subtlebytes
Copy link

chris-subtlebytes commented Jan 19, 2025

My project specifies a partition table path:

Full espflash.toml contents:

partition_table = "partitions.csv"

This is what's committed to my repository.

But when I run espflash monitor:

$ espflash monitor
✔ Use serial port '/dev/ttyACM0' - USB JTAG/serial debug unit? · yes
✔ Remember this serial port for future use? · yes  # <-- yes, I want to save because I don't want to press 'n' every time.

Now espflash.toml is changed:

partition_table = "partitions.csv"
+
+[connection]
+
+[[usb_device]]
+vid = "303a"
+pid = "1001"
+
+[flash]

I don't want to commit these device-specific to my repo because it's useless for other people and espflash.toml continually shows up as an unstaged file. I tried git update-index --skip-worktree espflash.toml, but that doesn't fix it for anyone else that downloads my repo and makes it difficult if I need to actually update the contents.

It would be really helpful if espflash.toml was 2 files, one for project configuration and one for local changes.

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

No branches or pull requests

1 participant