-
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
Open
isc-kiyer
wants to merge
8
commits into
main
Choose a base branch
from
fix-885
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f264c12
Update CLI commands to deprecate synchronous flag
fe5bbf4
Remove various LoadDependencies() calls as this should just be handle…
65382f4
Add unit test for paser and only include deprecated if relevant
e8c8540
Merge branch 'main' into fix-885
9c78274
Remove missed InstallContext refs
40b6112
Update changelog, remove $$$IsISCWorker references that are no longer…
a18535e
Update module version
e896271
remove debug breaks
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,49 +1,57 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <Export generator="Cache" version="25"> | ||
| <Document name="ZPM.ZPM"><Module> | ||
| <Name>ZPM</Name> | ||
| <Version>0.10.4-SNAPSHOT</Version> | ||
| <ExternalName>IPM</ExternalName> | ||
| <Description>InterSystems Package Manager (IPM) provides development tools and infrastructure for defining, building, distributing, and installing modules and applications.</Description> | ||
| <Keywords>Package Manager</Keywords> | ||
| <Author> | ||
| <Organization>InterSystems Corporation</Organization> | ||
| </Author> | ||
| <Packaging>module</Packaging> | ||
| <SourcesRoot>src</SourcesRoot> | ||
| <Resource Name="%IPM.PKG"/> | ||
| <Resource Name="%IPM.Common.INC"/> | ||
| <Resource Name="%IPM.Formatting.INC"/> | ||
| <Resource Name="IPM.Installer.CLS" Preload="true" /> | ||
| <UnitTest Name="/tests/unit_tests/" Package="Test.PM.Unit" Phase="test"/> | ||
| <UnitTest Name="/tests/integration_tests/" Package="Test.PM.Integration" Phase="verify"/> | ||
| <Invoke Class="IPM.Installer" Method="Map" Phase="Reload" When="Before" /> | ||
| <Invoke Class="IPM.Installer" Method="MapIfLegacy" Phase="Compile" When="After" /> | ||
| <Invoke Class="IPM.Installer" Method="InstallORASIfMissing" Phase="Activate" When="After" /> | ||
| <Invoke Class="%IPM.Main" Method="UpdateLanguageExtensions" /> | ||
| <Invoke Class="%IPM.Utils.Migration" Method="RunAll"> | ||
| <Arg>${verbose}</Arg> | ||
| </Invoke> | ||
| <Document name="ZPM.ZPM"> | ||
| <Module> | ||
| <Name>ZPM</Name> | ||
| <Version>0.10.5-SNAPSHOT</Version> | ||
| <ExternalName>IPM</ExternalName> | ||
| <Description>InterSystems Package Manager (IPM) provides development tools and | ||
| infrastructure for defining, building, distributing, and installing modules and | ||
| applications.</Description> | ||
| <Keywords>Package Manager</Keywords> | ||
| <Author> | ||
| <Organization>InterSystems Corporation</Organization> | ||
| </Author> | ||
| <Packaging>module</Packaging> | ||
| <SourcesRoot>src</SourcesRoot> | ||
| <Resource Name="%IPM.PKG" /> | ||
| <Resource Name="%IPM.Common.INC" /> | ||
| <Resource Name="%IPM.Formatting.INC" /> | ||
| <Resource Name="IPM.Installer.CLS" Preload="true" /> | ||
| <UnitTest Name="/tests/unit_tests/" Package="Test.PM.Unit" Phase="test" /> | ||
| <UnitTest Name="/tests/integration_tests/" Package="Test.PM.Integration" Phase="verify" /> | ||
| <Invoke Class="IPM.Installer" Method="Map" Phase="Reload" When="Before" /> | ||
| <Invoke Class="IPM.Installer" Method="MapIfLegacy" Phase="Compile" When="After" /> | ||
| <Invoke Class="IPM.Installer" Method="InstallORASIfMissing" Phase="Activate" | ||
| When="After" /> | ||
| <Invoke Class="%IPM.Main" Method="UpdateLanguageExtensions" /> | ||
| <Invoke Class="%IPM.Utils.Migration" Method="RunAll"> | ||
| <Arg>${verbose}</Arg> | ||
| </Invoke> | ||
|
|
||
| <!-- Requires 2022.1+ due to Embedded Python --> | ||
| <SystemRequirements Version=">=2022.1" /> | ||
| <!-- Requires 2022.1+ due to Embedded Python --> | ||
| <SystemRequirements Version=">=2022.1" /> | ||
|
|
||
| <!-- List of python wheels for offline installation – oras and its transitive dependencies --> | ||
| <PythonWheel Name="attrs-25.1.0-py3-none-any.whl" ExtraPipFlags="--no-deps"/> | ||
| <PythonWheel Name="certifi-2025.1.31-py3-none-any.whl" ExtraPipFlags="--no-deps"/> | ||
| <PythonWheel Name="charset_normalizer-2.1.1-py3-none-any.whl" ExtraPipFlags="--no-deps"/> | ||
| <PythonWheel Name="idna-3.10-py3-none-any.whl" ExtraPipFlags="--no-deps"/> | ||
| <PythonWheel Name="jsonschema-4.23.0-py3-none-any.whl" ExtraPipFlags="--no-deps"/> | ||
| <PythonWheel Name="jsonschema_specifications-2024.10.1-py3-none-any.whl" ExtraPipFlags="--no-deps"/> | ||
| <PythonWheel Name="oras-0.1.30-py3-none-any.whl" ExtraPipFlags="--no-deps"/> | ||
| <PythonWheel Name="referencing-0.36.2-py3-none-any.whl" ExtraPipFlags="--no-deps"/> | ||
| <PythonWheel Name="requests-2.32.3-py3-none-any.whl" ExtraPipFlags="--no-deps"/> | ||
| <PythonWheel Name="typing_extensions-4.12.2-py3-none-any.whl" ExtraPipFlags="--no-deps"/> | ||
| <PythonWheel Name="urllib3-2.3.0-py3-none-any.whl" ExtraPipFlags="--no-deps"/> | ||
| <!-- List of python wheels for offline installation – oras and its transitive | ||
| dependencies --> | ||
| <PythonWheel Name="attrs-25.1.0-py3-none-any.whl" ExtraPipFlags="--no-deps" /> | ||
| <PythonWheel Name="certifi-2025.1.31-py3-none-any.whl" ExtraPipFlags="--no-deps" /> | ||
| <PythonWheel Name="charset_normalizer-2.1.1-py3-none-any.whl" ExtraPipFlags="--no-deps" /> | ||
| <PythonWheel Name="idna-3.10-py3-none-any.whl" ExtraPipFlags="--no-deps" /> | ||
| <PythonWheel Name="jsonschema-4.23.0-py3-none-any.whl" ExtraPipFlags="--no-deps" /> | ||
| <PythonWheel Name="jsonschema_specifications-2024.10.1-py3-none-any.whl" | ||
| ExtraPipFlags="--no-deps" /> | ||
| <PythonWheel Name="oras-0.1.30-py3-none-any.whl" ExtraPipFlags="--no-deps" /> | ||
| <PythonWheel Name="referencing-0.36.2-py3-none-any.whl" ExtraPipFlags="--no-deps" /> | ||
| <PythonWheel Name="requests-2.32.3-py3-none-any.whl" ExtraPipFlags="--no-deps" /> | ||
| <PythonWheel Name="typing_extensions-4.12.2-py3-none-any.whl" ExtraPipFlags="--no-deps" /> | ||
| <PythonWheel Name="urllib3-2.3.0-py3-none-any.whl" ExtraPipFlags="--no-deps" /> | ||
|
|
||
| <!-- Pure python implementation of rpds-py for offline installation or behind a firewall. | ||
| <!-- Pure python implementation of rpds-py for offline installation or behind a | ||
| firewall. | ||
| This intentionally and necessarily masks possible installation of the real rpds-py package | ||
| for the sake of working in a container environment with durable %SYS. --> | ||
| <FileCopy Name="modules/python/rpds.py" Target="${mgrdir}python/rpds.py"/> | ||
| </Module> | ||
| </Document></Export> | ||
| <FileCopy Name="modules/python/rpds.py" Target="${mgrdir}python/rpds.py" /> | ||
| </Module> | ||
| </Document> | ||
| </Export> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,6 +48,9 @@ XData Schema [ Internal, MimeType = application/xml ] | |
| <!-- Parameter required? --> | ||
| <xs:attribute name="required" type="xs:boolean" use="optional" default="false"/> | ||
|
|
||
| <!-- Whether the modifier is deprecated --> | ||
| <xs:attribute name="deprecated" type="xs:boolean" use="optional" default="false"/> | ||
|
|
||
| <!-- Description of what this parameter does --> | ||
| <xs:attribute name="description" type="string" use="optional"/> | ||
|
|
||
|
|
@@ -92,16 +95,19 @@ XData Schema [ Internal, MimeType = application/xml ] | |
| <!-- Modifier name --> | ||
| <xs:attribute name="name" type="string" use="required"/> | ||
|
|
||
| <!-- Modifier name --> | ||
| <!-- Modifier required --> | ||
| <xs:attribute name="required" type="xs:boolean" use="optional" default="false"/> | ||
|
|
||
| <!-- Whether the modifier is deprecated --> | ||
| <xs:attribute name="deprecated" type="xs:boolean" use="optional" default="false"/> | ||
|
|
||
| <!-- Comma-separated list of aliases --> | ||
| <xs:attribute name="aliases" type="string" use="optional"/> | ||
|
|
||
| <!-- If true, the modifier name is followed in the command string by a value --> | ||
| <xs:attribute name="value" type="xs:boolean" use="optional" default="false"/> | ||
|
|
||
| <!-- If true, the modifier name is followed in the command string by a value --> | ||
| <!-- Description of the modifier --> | ||
| <xs:attribute name="description" type="string" use="optional"/> | ||
|
|
||
| <!-- If set, this provides a fixed list of valid values for the modifier --> | ||
|
|
@@ -159,7 +165,7 @@ XData Schema [ Internal, MimeType = application/xml ] | |
| </xs:schema> | ||
| } | ||
|
|
||
| /// Turns the Comomand XData block into a subscripted array as follows: | ||
| /// Turns the Command XData block into a subscripted array as follows: | ||
| /// pCommandStructure(1, "<alias>") = "<command name>" | ||
| /// pCommandStructure("<command-name>") -> | ||
| /// "description" = describes the command | ||
|
|
@@ -173,11 +179,13 @@ XData Schema [ Internal, MimeType = application/xml ] | |
| /// "aliases" = aliases for the modifier | ||
| /// "description" = describes the modifier | ||
| /// "required" = whether or not modifier is required for the command | ||
| /// "deprecated" = whether or not modifier is deprecated for the command | ||
| /// "trailing" = whether modifier is a trailing modifier | ||
| /// "parameters": | ||
| /// "<parameter>": | ||
| /// "description" = description of parameter | ||
| /// "required" = is parameter required | ||
| /// "deprecated" = whether or not parameter is deprecated for the command | ||
| ClassMethod %GetOneCommandStructure(Output pCommandStructure) [ CodeMode = objectgenerator ] | ||
| { | ||
| #define DefaultGroup "-" | ||
|
|
@@ -315,9 +323,10 @@ ClassMethod %GetOneCommandStructure(Output pCommandStructure) [ CodeMode = objec | |
| do %code.WriteLine(" Set pCommandStructure("_tName_","_$$$QUOTE(tMap(tCommChild))_") = "_tDescContent) | ||
| } | ||
| } else { | ||
| // Common: name, required, description | ||
| // Common to bother modifier and parameter | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: typo? |
||
| set tChildName = $$$QUOTE(tMap(tCommChild,"a","name")) | ||
| set tRequired = $case($get(tMap(tCommChild,"a","required")),"true":1,:0) | ||
| set tDeprecated = $case($get(tMap(tCommChild,"a","deprecated")),"true":1,:0) | ||
|
|
||
| if (tMap(tCommChild) = "modifier") { | ||
| // Also: aliases, value, valueList | ||
|
|
@@ -337,17 +346,19 @@ ClassMethod %GetOneCommandStructure(Output pCommandStructure) [ CodeMode = objec | |
| do %code.WriteLine(" Set pCommandStructure("_tName_",""modifiers"","_tChildName_",""group"") = "_tGroupName) | ||
| do %code.WriteLine(" Set pCommandStructure("_tName_",""modifiers"","_tChildName_",""value"") = "_$case(tValue,"true":1,:0)) | ||
| do %code.WriteLine(" Set pCommandStructure("_tName_",""modifiers"","_tChildName_",""required"") = "_tRequired) | ||
| do %code.WriteLine(" Set pCommandStructure("_tName_",""modifiers"","_tChildName_",""deprecated"") = "_tDeprecated) | ||
| do:(tDesc'=$$$empty) %code.WriteLine(" Set pCommandStructure("_tName_",""modifiers"","_tChildName_",""description"") = "_tDesc) | ||
| do:(tValueList'=$$$empty) %code.WriteLine(" Set pCommandStructure("_tName_",""modifiers"","_tChildName_",""valueList"") = "_tValueList) | ||
| do:(tDataAlias'=$$$empty) %code.WriteLine(" Set pCommandStructure("_tName_",""modifiers"","_tChildName_",""dataAlias"") = "_tDataAlias) | ||
| do:(tDataValue'=$$$empty) %code.WriteLine(" Set pCommandStructure("_tName_",""modifiers"","_tChildName_",""dataValue"") = "_tDataValue) | ||
| } elseif (tMap(tCommChild) = "parameter") { | ||
| } elseif (tMap(tCommChild) = "parameter") { | ||
| // Also: example | ||
| set tExample = $$$QUOTE($get(tMap(tCommChild,"a","example"))) | ||
| set tTrailing = $case($get(tMap(tCommChild,"a","trailing")),"true":1,:0) | ||
| do %code.WriteLine(" Set pCommandStructure("_tName_",""parameters"",$i(pCommandStructure("_tName_",""parameters""))) = "_tChildName) | ||
| do %code.WriteLine(" Set pCommandStructure("_tName_",""parameters"","_tChildName_",""trailing"") = "_tTrailing) | ||
| do %code.WriteLine(" Set pCommandStructure("_tName_",""parameters"","_tChildName_",""required"") = "_tRequired) | ||
| do %code.WriteLine(" Set pCommandStructure("_tName_",""parameters"","_tChildName_",""deprecated"") = "_tDeprecated) | ||
| do:(tDesc'=$$$empty) %code.WriteLine(" Set pCommandStructure("_tName_",""parameters"","_tChildName_",""description"") = "_tDesc) | ||
| do:(tExample'=$$$empty) %code.WriteLine(" Set pCommandStructure("_tName_",""parameters"","_tChildName_",""example"") = "_tExample) | ||
| } | ||
|
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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