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

Load dependencies from .modules subfolder #726

Merged
merged 15 commits into from
Feb 5, 2025
Merged

Conversation

isc-shuliu
Copy link
Collaborator

@isc-shuliu isc-shuliu commented Feb 3, 2025

Fix #721.
With this PR, a temporary fs repo will be configured for <package-folder>/.modules if it exists, and automatically deleted when the loading finishes (even if it returned an error status code).
The temporary repo is also the first in terms of priority for discovering packages.

@isc-shuliu
Copy link
Collaborator Author

While working on this PR, I noticed that a couple of test cases involving ##class(%IPM.Main).Shell("load <path>") was never supposed to pass because there was a typo in <path>.

I changed the behavior of the load command such that it will raise an error signaling an erroneous path. Also documented this in CHANGELOG.md.

@isc-shuliu isc-shuliu marked this pull request as ready for review February 4, 2025 20:50
Copy link
Collaborator

@isc-kiyer isc-kiyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@isc-shuliu few very minor comments. Looks great! We had discussed during the call today that this could also be supported for installing from a repo using the install command but in that case the local .modules directory would be used last in the ordering instead of first. Do you want to implement that in a separate review or this one?

src/cls/IPM/Repo/Definition.cls Outdated Show resolved Hide resolved
src/cls/IPM/Storage/Module.cls Outdated Show resolved Hide resolved
src/cls/IPM/Utils/Module.cls Outdated Show resolved Hide resolved
@isc-shuliu isc-shuliu requested a review from isc-kiyer February 5, 2025 15:46
@isc-shuliu isc-shuliu linked an issue Feb 5, 2025 that may be closed by this pull request
src/cls/IPM/Main.cls Show resolved Hide resolved
@isc-shuliu isc-shuliu merged commit 1faf87e into v0.10.x Feb 5, 2025
15 checks passed
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

Successfully merging this pull request may close these issues.

Load tarball - IPM look for dependency from repo instead
3 participants