Skip to content

Commit 6b9c6be

Browse files
James LechtnerJames Lechtner
authored andcommitted
Only mark resources once during the update
1 parent fa06a35 commit 6b9c6be

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
- #1122: Packaging should recognize resources in dependency modules set to deploy
2222
- #1119: The update command should check version requirements using post-update values instead of what's currently installed
2323
- #1097: The Test resource processor now supports nested tests
24+
- #1128: Fixed an issue where an update can fail if a resource is moved from one module to another
2425

2526
## [0.10.6] - 2026-02-24
2627

src/cls/IPM/Storage/Module.cls

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,13 +1336,6 @@ Method GetResolvedReferences(
13361336
{
13371337
set tSC = $$$OK
13381338
try {
1339-
if pLockedDependencies && '$data(pDependencyGraph) {
1340-
set tSC = ..BuildDependencyGraph(.pDependencyGraph,,,,pPhases)
1341-
if $$$ISERR(tSC) {
1342-
quit
1343-
}
1344-
}
1345-
13461339
set pReferenceArray(..Name, ..Name_".ZPM") = ""
13471340

13481341
set orderedResourceList = ..GetOrderedResourceList()
@@ -1371,6 +1364,12 @@ Method GetResolvedReferences(
13711364
}
13721365

13731366
if pLockedDependencies {
1367+
if '$data(pDependencyGraph) {
1368+
set tSC = ..BuildDependencyGraph(.pDependencyGraph,,,,pPhases)
1369+
if $$$ISERR(tSC) {
1370+
quit
1371+
}
1372+
}
13741373
set tModName = ""
13751374
for {
13761375
set tModName = $order(pDependencyGraph(tModName))

src/cls/IPM/Utils/Module.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ ClassMethod LoadNewModule(
11741174
}
11751175

11761176
// Mark relevant resources for update
1177-
if ($get(params("cmd")) = "update") {
1177+
if (commandLineModuleName '= "") && ($get(params("cmd")) = "update") {
11781178
set tSC = moduleCurrent.GetResolvedReferences(.resourceArray, 1)
11791179
set moduleKey = ""
11801180
for {

0 commit comments

Comments
 (0)