Skip to content

espflash.toml mixes project configuration with environment #727

Open
@chris-subtlebytes

Description

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.

Activity

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

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status

    Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions