-
Notifications
You must be signed in to change notification settings - Fork 711
Subdir field of source-repository-package
should accept multiple arguments.
#5472
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
Comments
@hvr Well, we could just change it to |
@merijn I like the idea to introduce a Generally, there's likely more fields we'd want to add to |
IMPORTANT: Due to #5487 there's a minor added complexity: we'd need to resolve the multiple |
This would be a good feature. |
Just hit this myself. Is there a workaround? |
@hvr I really think this is just a case of expanding it out at the syntax layer. The underlying mechanisms already have support for subdir and doing only a single download even when there are multiple uses of the same repo (including for git when different uses use different commits/branches). For @erikd and others: yes the workaround is just list the repo multiple times, once for each subdir. It only gets downloaded once. |
Would love this! |
Implementation comment: the |
which can be parametrised over container of subdirs: [], Maybe, Proxy...
This would be nice! |
The lack of this feature has definitely been annoying for me. I have the following lines in my
And each time the |
Resolve #5472: Add SourceRepositoryPackage..
Uh oh!
There was an error while loading. Please reload this page.
I'm playing around with the freshly merged
source-repository-package
(#2189, #5351), after searching thecabal-install
source to figure out all the field names, I noticed an annoyance. The implementation of remote dependencies was prescient enough to allow me to specify a subdirectory to look for a cabal file in, but sadly only allows me to list a single subdirectory to look in.I have several related packages in a single repository, these depend on each other, but some haven't been released yet, so I need to depend on multiple package from the same repo. Unfortunately, I can only specify one subdir to look in for cabal files. I've worked around this by listing the same repo multiple times, but this super ugly:
Ideally subdir should just take a list of subdirectories so I can instead simply write:
The text was updated successfully, but these errors were encountered: