Skip to content

feat(clone,snapshot): use yaml-edit for overrides - #369

Draft
fischeti wants to merge 1 commit into
masterfrom
yaml-edit
Draft

fischeti wants to merge 1 commit into
masterfrom
yaml-edit

Conversation

@fischeti

Copy link
Copy Markdown
Contributor

There is a new handy crate yaml-edit, which allows to modify bender YAML files reliably e.g. for bender clone and bender snapshot

The current approach is a bit brittle, since it is essentially text matching, and for instance axi also matches axi_riscv_atomics. Also multi-line YAML specifications are not supported.

The caveat is currently that the added comments are lost i.e. "Temporary override by Bender...". Replacing or adding comments is currently not supported by yaml-edit. Alternatively, we could open a PR to add it.

yaml-edit pulls in a couple of dependencies, but it could potentially be worth it since it also allows other nice features in the future e.g. bender add/remove to add/remove dependencies from the manifest.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant