mateodelnorte / meta

tool for turning many repos into a meta repo. why choose many repos or a monolithic repo, when you can have both with a meta repo?
MIT License
2.06k stars 100 forks source link

projects in .meta file are not sorted #309

Open milahu opened 1 year ago

milahu commented 1 year ago

🐛 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
mateodelnorte commented 1 year ago

PRs are welcome