Prevent Initalize-SCuBA from executing on each ScubaGear module import #931
Labels
enhancement
This issue or pull request will add new or improve existing functionality
Milestone
💡 Summary
ScubaGear is currently on
Import-Module
runningInitialize-SCuBA
, the refactor of.\SetUp.ps1
throughDependencies.ps1
on module import.ScubaGear should not automatically try to update each time the user imports the module.
The user should be able to update dependencies at the time of their choosing.
Running
Initalize-SCuBA
on module import also has the side effect of impacting developer efficiency.For each PowerShell code change the user has to reimport the ScubaGear module to see their changes.
Currently it takes anywhere from 1-2 minutes just to import the module.
Meaning developers will have to wait an additional 1-2 minutes to see their code changes reflected.
Motivation and context
Give users the choice to choose when to update their PowerShell modules.
Restore developer efficiency.
Implementation notes
Modify the
Dependencies.ps1
script to not callInitialize-SCuBA
by defaultAcceptance criteria
Initalize-SCuBA
is not called by default when importing the ScubaGear module.The text was updated successfully, but these errors were encountered: