chapel-lang / mason-registry

Package registry for mason, Chapel's package manager
17 stars 25 forks source link

Add hello world brick #54

Closed bmcdonald3 closed 2 years ago

bmcdonald3 commented 2 years ago

When you say "sort these keys", do you just mean organize them in a way that I think looks nice or is there an actual sort that is done?

arezaii commented 2 years ago

When you say "sort these keys", do you just mean organize them in a way that I think looks nice or is there an actual sort that is done?

Sort them in alphabetical order, basically just swap the last two keys, source and version.

bmcdonald3 commented 2 years ago

OK, and is that a style thing or does it need to be in that order?

arezaii commented 2 years ago

OK, and is that a style thing or does it need to be in that order?

There isn't any "need", it'll just be re-ordered if you use mason add to add a dependency and mason rewrites this file is all. Because mason uses the TOML package to write out .toml files, and the TOML package sorts the keys before printing to keep the output deterministic.