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

Improve support for optional feature #218

Open
ferki opened this issue Apr 17, 2022 · 0 comments
Open

Improve support for optional feature #218

ferki opened this issue Apr 17, 2022 · 0 comments

Comments

@ferki
Copy link

ferki commented Apr 17, 2022

Currently cpm supports --feature to enable some optional features of a module that is being installed.

cpanm has a slightly different set of related CLI options, namely --with-feature, --without-feature, --with-all-features.

I find these flags especially useful during automated testing scenarios, when one might need to run test cases with all features enabled, or just specific ones disabled.

For example in one of the project I'm involved in, there are 6 different optional features pulling in additional dependencies. On Linux and Mac OS all features can be supported, so

cpanm --installdeps --with-all-features

can be used. However on Windows, 2 of these features can't be supported, so

cpanm --installdeps --with-all-features --without-feature=feat1 --without-feature=feat2

has to be used.

I feel it would be nice to be closer to cpanm behavior in these terms, and I haven't found a convenient way to replicate the same approach with cpm yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant