You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not a real bug per se, but an annoyance. The order of the sections in the generated libs.versions.toml is unusual (plugins comes first, before versions).
It would be better if plugins were at the bottom for the following reasons:
the versions section is the thing that we update the most, and manually, so it's nice if it's easier to access - at the top
plugins usually reference version numbers from the version section, and it's more natural for version references to appear after version declarations
the official example shows the sections in this order: versions, libraries, bundles, plugins
⚠️ Current behavior
The plugins section is moved to the top.
✅ Expected behavior
The plugins section stays wherever it is, or is moved to the bottom.
💣 Steps to reproduce
Create a libs.versions.toml with a plugins section. For instance:
Then run refreshVersions and notice that the plugins section moved.
The text was updated successfully, but these errors were encountered:
joffrey-bion
changed the title
Plugins section in libs.versions.toml is moved to the top by refreshVersions[plugins] section in libs.versions.toml is moved to the top by refreshVersionsJul 5, 2023
TBH, I'd say it would be best if there was an option whether you want the sections to be in "standard" order, or left as-is. versions, libraries, bundles, plugins is the official order, but, arguably, versions, plugins, libraries, bundles makes more sense (you use plugins in your scripts before other deps). Standardizing the default and allowing the devs to use their existing ordering doesn't seem a wrong choice here, since any order is actually valid since the input is just a TOML file, which doesn't (and can't) enforce this.
Right, my biggest problem is that it doesn't keep my ordering. I believe refreshVersions should either force the standard ordering, or respect the user's ordering. If the latter, it removes the need to add any configuration and everyone is just happy :)
🐛 Describe the bug
Not a real bug per se, but an annoyance. The order of the sections in the generated
libs.versions.toml
is unusual (plugins
comes first, beforeversions
).It would be better if
plugins
were at the bottom for the following reasons:versions
section is the thing that we update the most, and manually, so it's nice if it's easier to access - at the topplugins
usually reference version numbers from theversion
section, and it's more natural for version references to appear after version declarationsversions
,libraries
,bundles
,plugins
The
plugins
section is moved to the top.✅ Expected behavior
The
plugins
section stays wherever it is, or is moved to the bottom.💣 Steps to reproduce
Create a
libs.versions.toml
with aplugins
section. For instance:Then run
refreshVersions
and notice that theplugins
section moved.The text was updated successfully, but these errors were encountered: