-
Notifications
You must be signed in to change notification settings - Fork 24
Fix 885: Make loading of dependencies always synchronous #894
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
base: main
Are you sure you want to change the base?
Conversation
…d at install time. Convert default to sync loading. Remove InstallContext as its no longer needed.
… valid. Remove command line module name from dependency loads (only needed for initial check when running load/update)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple nits and a question
| // If it does, always use it | ||
| // Particularly relevant for compilation of dependencies | ||
| // The "clean" phase can be used to bypass this (by removing modules from the current namespace) | ||
| // Forcing an update from disk can also override this, although we ensure that the same module is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: could also remove this comment about forcing an update from disk since it looks like it refers to tForceSnapshotReload
| // Check for valid license key prior to top-level module load | ||
| // This may throw an exception. | ||
| if '$data($$$ZPMHandledModules($namespace)) { | ||
| set tLicenseIsValid = ..CheckLicenseKey() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we not need to check the license key anymore? If so, could probably just remove the ClassMethod entirely
| } | ||
| } else { | ||
| // Common: name, required, description | ||
| // Common to bother modifier and parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: typo?
|
Just wondering out loud if there is a way to attach "doc" to code changes on Github (probably not). But a reminder to update the Wiki with the new CLI changes once live! |
| ### Fixed | ||
|
|
||
| ### Security | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry but I think my recent merge to main has made your CHANGELOG stale so would require another pull from main
| set tResults(tCommands,"modifiers","tree")="" | ||
|
|
||
| set tCommands($increment(tCommands)) = "install SomeModule" | ||
| set tCommands($increment(tCommands)) = "install SomeModule -synchronous" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this check that there's a warning displayed for the deprecation?
Summary of changes:
GetPackageService()is called which slows down buildsresolves #885