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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support subcollections in collection field in info.rkt #4901

Open
countvajhula opened this issue Jan 11, 2024 · 1 comment
Open

Support subcollections in collection field in info.rkt #4901

countvajhula opened this issue Jan 11, 2024 · 1 comment
Labels
feature request Feature Request package system Related to the package system (either raco pkg or the legacy PLaneT system) or similar tooling

Comments

@countvajhula
Copy link

Currently, the collection field needs to be set to a top level collection or to multi. In either case, adding modules like my-lib/a/b/c and my-lib/a/b/d require creating a folder structure resembling this in the source repo:

my-lib/
  info.rkt
  a/
    b/
      c.rkt
      d.rkt

... even if these are the only modules provided by the package. That is, the source repo must introduce the entire collection path hierarchy to the directory structure of the repo even when the higher levels are empty.

It could be preferable to be able to specify a subcollection path in info.rkt, like:

(define collection "my-lib/a/b")

And then the repo could have the structure:

info.rkt
c.rkt
d.rkt

Or, as the top level is hopeless, something like:

src/
  info.rkt
  c.rkt
  d.rkt
...

Examples: Many repos introduce a tests subfolder in what is already designated as a test package containing only tests. See Megaparsack, Marionette, Pict, Qi.

@countvajhula countvajhula changed the title Support subcollections in collection field Support subcollections in collection field in info.rkt Jan 11, 2024
@samdphillips
Copy link
Contributor

This repo is for the package index, and I think the functionality you want needs to be in the pkg library which is in the
racket repo.

@sorawee sorawee transferred this issue from racket/pkg-index Jan 17, 2024
@shhyou shhyou added feature request Feature Request package system Related to the package system (either raco pkg or the legacy PLaneT system) or similar tooling labels Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature Request package system Related to the package system (either raco pkg or the legacy PLaneT system) or similar tooling
Projects
None yet
Development

No branches or pull requests

3 participants