Skip to content

Adding zpm "ci" command to install from a lock file#1080

Open
isc-jlechtne wants to merge 11 commits intomainfrom
ipm-ci
Open

Adding zpm "ci" command to install from a lock file#1080
isc-jlechtne wants to merge 11 commits intomainfrom
ipm-ci

Conversation

@isc-jlechtne
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Collaborator

@isc-dchui isc-dchui left a comment

Choose a reason for hiding this comment

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

Good overall! Just a few small things. Also you'll want to add a description.

Comment thread src/cls/IPM/General/LockFile.cls Outdated
Comment thread src/cls/IPM/Main.cls Outdated
} elseif (tCommandInfo = "history") {
do ..History(.tCommandInfo)
} elseif (tCommandInfo = "ci") {
do ..CleanInstall(.tCommandInfo)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It's a bit confusing to me to have "ci" stand for "CleanInstall", since 1) CI=continuous integration, and 2) it doesn't mention the lock file like "LockFileInstall" would for example.

But taking a step back, what's the benefit of having a new command versus using a flag on install/load?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The initial plan was to have creation of a lock file be tied to install/load but installing from it its own method. However, the more I think about this, I do think you are correct. Functionally, I don't think there is anything that requires a whole new method as opposed to the new flag you suggested. I'll make the switch for the next PR iteration (and we can always back track if a reason comes up to).

As for the naming part: The reason we called it ci/CleanInstall for consistency since that is the same name used in other package managers.

Comment thread CHANGELOG.md Outdated
Comment thread src/cls/IPM/Main.cls Outdated
Comment thread src/cls/IPM/Main.cls Outdated
set verbose = $get(commandInfo("data","Verbose"))
set log = ##class(%IPM.General.HistoryTemp).CleanInstallInit(moduleName)

// TODO: Add "path"? (see Update() for more info of calling install v load)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

When is this todo being done or removed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It is being done. This was just a reminder to myself when putting up the first commit and PR for comments that I still need to account for that case.

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.

2 participants