Skip to content

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

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

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

Conversation

@isc-jlechtne
Copy link
Collaborator

No description provided.

Copy link
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.

}
continue
}
elseif (verbose) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: change to one line like } elseif (verbose) {

} elseif (tCommandInfo = "history") {
do ..History(.tCommandInfo)
} elseif (tCommandInfo = "ci") {
do ..CleanInstall(.tCommandInfo)
Copy link
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?


### Added
- #1024: Added flag -export-python-deps to publish command
- #962: Adding zpm "ci" command to install from a lock file
Copy link
Collaborator

Choose a reason for hiding this comment

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

You'll need to pull from main and move this entry to 0.10.7

set moduleName = $get(commandInfo("parameters","module"))
set version = $get(commandInfo("parameters","version"))
set verbose = $get(commandInfo("data","Verbose"))
set log = ##class(%IPM.General.HistoryTemp).CleanInstallInit(moduleName)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also add a test to check that the history log is being populated correctly (see Test.PM.Integration.History)

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
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?

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