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
Currently the structure of _sources is just _sources/<package>/<version>. Suppose we allowed _sources/**/<package>/<version>. Then you could do things like this:
What's the benefit here? One is purely psychological: it lets people group stuff in a way that maybe makes more sense to them. The other is that it makes it much simpler to define e.g. a CODEOWNERS file, where you could match on plutus/* rather than having to list every package.
The intervening directories would of course have no effect on the build, so you could move them around freely.
The text was updated successfully, but these errors were encountered:
TBH I think the _sources/<package>/<version> schema is mostly historical. This also gave us headaches because we have to make sure the location of meta.toml matches the resulting package id.
We could just glob **/meta.toml and only make sure there are no duplicates at the end; but it will give a worse user experience since nothing is going to tell you what packages you are looking at (since the name will only known when we cabal sdist). Also this doesn't help you with CODEOWNERS.
I think the <package>/<version> structure is nice. If we don't do that, I would like to see that information go in meta.toml (even if it's strictly redundant since we can get it from the sdist).
I would be mildly in favour of a "meta.toml contains package version information, meta.tomls can go anywhere" approach, but it would probably be a hassle to migrate to and not obviously worth it.
Also this doesn't help you with CODEOWNERS.
Well, it does: it means the structure is up to the people managing the repository source, which means you can do whatever you want. Of course, there would be nothing enforcing the structure, but this isn't really intended to defend against malicious people, just to get reviewers assigned.
Currently the structure of
_sources
is just_sources/<package>/<version>
. Suppose we allowed_sources/**/<package>/<version>
. Then you could do things like this:And so on.
What's the benefit here? One is purely psychological: it lets people group stuff in a way that maybe makes more sense to them. The other is that it makes it much simpler to define e.g. a
CODEOWNERS
file, where you could match onplutus/*
rather than having to list every package.The intervening directories would of course have no effect on the build, so you could move them around freely.
The text was updated successfully, but these errors were encountered: