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

[BUG] YAML duplication due re-ordering #613

Open
usernotnull opened this issue Jan 28, 2023 · 0 comments · May be fixed by #1107
Open

[BUG] YAML duplication due re-ordering #613

usernotnull opened this issue Jan 28, 2023 · 0 comments · May be fixed by #1107
Labels
bug Something isn't working

Comments

@usernotnull
Copy link

usernotnull commented Jan 28, 2023

Describe the bug
Changing the YAML list order causes sr-* entry duplication.

To Reproduce

Add a new YAML entry at the bottom of the metadata list.

Expected behavior
The plugin should replace all sr-* entries by search & replace, not expecting the entries to be at the bottom.

Additional context
I am using a linter to sort YAML key order, which causes this issue.
Regardless of linting or not, one has to keep in mind to be careful about the metadata entries they're adding. Otherwise, it would cause duplicate entries for this plugin, which could be avoided with a search & replace or a completely different approach, as #162.

@usernotnull usernotnull added the bug Something isn't working label Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant