evshvarov / deployed-code-template

MIT License
0 stars 1 forks source link

ZPM fails in existing installation #2

Closed r-cemper closed 4 months ago

r-cemper commented 4 months ago

USER>zpm "install deployed-oscript-template"

ERROR! Download module, hash mismatch. 4270ff4a00a046156a40bb9462f46a1202202c79 USER>zpm "ver"

%SYS> zpm 0.7.0 https://pm.community.intersystems.com - 1.0.6

evshvarov commented 4 months ago

thank you! Looking into it

On Mon, Apr 22, 2024 at 5:37 PM r-cemper @.***> wrote:

USER>zpm "install deployed-oscript-template"

ERROR! Download module, hash mismatch. 4270ff4a00a046156a40bb9462f46a1202202c79 USER>zpm "ver"

%SYS> zpm 0.7.0 https://pm.community.intersystems.com - 1.0.6

— Reply to this email directly, view it on GitHub https://github.com/evshvarov/deployed-code-template/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVHEP33FMIXKIG4JD3Y4BDY6U4C5AVCNFSM6AAAAABGTEC2J2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2TMOJZGM3TEMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

r-cemper commented 4 months ago

But load.... works and both sources are visible USER>zpm "load /home/irisowner/dev/deployed-code/ -v"

Load started on 04/22/2024 16:42:48 Loading file /home/irisowner/dev/deployed-code/module.xml as xml Imported document: deployed-oscript-template.ZPM Load finished successfully.

Skipping preload - directory does not exist. Load started on 04/22/2024 16:42:48 Loading file /home/irisowner/dev/deployed-code/module.xml as xml Imported document: deployed-oscript-template.ZPM Load finished successfully.

Loading deployed-oscript-template in process 800 [USER|deployed-oscript-template] Reload START (/home/irisowner/dev/deployed-code/) Skipping preload - directory does not exist. Load of directory started on 04/22/2024 16:42:48 '*'

Loading file /home/irisowner/dev/deployed-code/src/dc/deployed/ObjectScript.cls as udl Load finished successfully.

Load of directory started on 04/22/2024 16:42:48 '*'

Loading file /home/irisowner/dev/deployed-code/src/dc/withsource/ObjectScript.cls as udl Load finished successfully.

[USER|deployed-oscript-template] Reload SUCCESS [deployed-oscript-template] Module object refreshed. [USER|deployed-oscript-template] Validate START [USER|deployed-oscript-template] Validate SUCCESS [USER|deployed-oscript-template] Compile START Compilation started on 04/22/2024 16:42:48 with qualifiers 'd-lck' Compiling 2 classes Compiling class dc.deployed.ObjectScript Compiling class dc.withsource.ObjectScript Compiling routine dc.deployed.ObjectScript.1 Compiling routine dc.withsource.ObjectScript.1 Compilation finished successfully in 0.016s.

[USER|deployed-oscript-template] Compile SUCCESS [USER|deployed-oscript-template] Activate START [USER|deployed-oscript-template] Configure START [USER|deployed-oscript-template] Configure SUCCESS Studio project created/updated: deployed-oscript-template.PRJ [USER|deployed-oscript-template] Activate SUCCESS

r-cemper commented 4 months ago

this is running in my mini-docker image IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2024.1 (Build 262U) Thu Mar 7 2024 15:36:40 EST

I try your complete package next

evshvarov commented 4 months ago

fixed

On Mon, Apr 22, 2024 at 5:51 PM r-cemper @.***> wrote:

this is running in my mini-docker image IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2024.1 (Build 262U) Thu Mar 7 2024 15:36:40 EST

— Reply to this email directly, view it on GitHub https://github.com/evshvarov/deployed-code-template/issues/2#issuecomment-2070209108, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVHEP77YQWUKWNGAH56V6DY6U5XTAVCNFSM6AAAAABGTEC2J2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZQGIYDSMJQHA . You are receiving this because you commented.Message ID: @.***>

r-cemper commented 4 months ago

class stays with source until write $system.OBJ.MakeClassDeployed("dc.deployed.ObjectScript",,1)

SO: the Deploy param is ignored <Resource Name="dc.deployed.PKG" Deploy="true"/>

evshvarov commented 4 months ago

USER>k text do

class(%Compiler.UDL.TextServices).GetTextAsString($namespace,

"dc.deployed.ObjectScript", .text) w text

Class dc.deployed.ObjectScript

{

ClassMethod Test() As %Status

{

}

}

On Mon, Apr 22, 2024 at 6:19 PM r-cemper @.***> wrote:

class stays with source until write $system.OBJ.MakeClassDeployed("dc.deployed.ObjectScript",,1)

SO: the Deploy param is ignored

— Reply to this email directly, view it on GitHub https://github.com/evshvarov/deployed-code-template/issues/2#issuecomment-2070310279, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVHEPZYWESXK2GWSRVCTWTY6VBDFAVCNFSM6AAAAABGTEC2J2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZQGMYTAMRXHE . You are receiving this because you commented.Message ID: @.***>

r-cemper commented 4 months ago

After clearing all docker caches and iris images it worked after restart. versions look similar but all work as described. in all variants ZPM install .. and ZPM load Deployed is now really deployed.

evshvarov commented 4 months ago

Thank you, Robert!

On Mon, Apr 22, 2024 at 7:01 PM r-cemper @.***> wrote:

After clearing all docker caches and iris images it worked after restart. versions look similar but all work as described. in all variants ZPM install .. and ZPM load Deployed is now really deployed.

— Reply to this email directly, view it on GitHub https://github.com/evshvarov/deployed-code-template/issues/2#issuecomment-2070458326, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVHEP6LJVWRQD2BVUVCQJLY6VF7RAVCNFSM6AAAAABGTEC2J2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZQGQ2TQMZSGY . You are receiving this because you commented.Message ID: @.***>