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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

projects in .meta file are not sorted #309

Open
milahu opened this issue Nov 26, 2022 · 1 comment
Open

projects in .meta file are not sorted #309

milahu opened this issue Nov 26, 2022 · 1 comment
Labels

Comments

@milahu
Copy link

milahu commented Nov 26, 2022

馃悰 Bug Report

projects in .meta file are not sorted

To Reproduce

add some projects in random order

cd $(mktemp -d)
git init
meta init
meta project import b https://b.org/
meta project import c https://c.org/
meta project import a https://a.org/
cat .meta

now the projects are sorted by time

{
  "projects": {
    "b": "https://b.org/",
    "c": "https://c.org/",
    "a": "https://a.org/"
  }
}

Expected behavior

projects are sorted by name, like dependencies in package.json

Workaround

sort all objects with jq

cat .meta | jq --sort-keys | sponge .meta
@milahu milahu added the bug label Nov 26, 2022
@mateodelnorte
Copy link
Owner

PRs are welcome

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

No branches or pull requests

2 participants