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

switch on module in place of switched off module #347

Open
xdelaruelle opened this issue Jun 26, 2020 · 0 comments
Open

switch on module in place of switched off module #347

xdelaruelle opened this issue Jun 26, 2020 · 0 comments

Comments

@xdelaruelle
Copy link
Member

When calling switch sub-command it currently unloads specified switched-off module and loads switched-on module after all loaded modules. In version 3 of Modules, switched-on module was set in place of the switched off module.

Depending on usages, this behavior of Modules version 3 may be desired.

To have this behavior operating in a consistent way, every module loaded after switched-off module should be unloaded, then switched-on module should be loaded, then unloaded modules should be loaded again. This way the append-path and prepend-path commands from switched-on module will operate consistently.

This behavior of switch sub-command triggers an automated module handling mechanism, so it should only be triggered if auto_handling configuration is enabled.

Also this should not replace switch sub-command behavior of Modules version 4, so enabling back behavior of version 3 should be done through an option, disabled by default, named switch_inplace for instance.

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

No branches or pull requests

1 participant