File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -533,11 +533,16 @@ func (li LocalInstance) updateLock() osx.Lock[localInstanceUpdateLock] {
533533 if err != nil {
534534 return zero , err
535535 }
536+ javaHomeDir , err := li .JavaManager ().FindHomeDir ()
537+ if err != nil {
538+ return zero , err
539+ }
536540 return localInstanceUpdateLock {
537541 Version : li .Version ,
538542 HTTPPort : li .instance .HTTP ().Port (),
539543 RunModes : strings .Join (li .RunModes , "," ),
540544 JVMOpts : strings .Join (li .JvmOpts , " " ),
545+ JavaHome : javaHomeDir ,
541546 Password : cryptox .HashString (li .instance .password ),
542547 EnvVars : strings .Join (li .EnvVars , "," ),
543548 SecretVars : cryptox .HashString (strings .Join (li .SecretVars , "," )),
@@ -550,6 +555,7 @@ func (li LocalInstance) updateLock() osx.Lock[localInstanceUpdateLock] {
550555type localInstanceUpdateLock struct {
551556 Version string `yaml:"version"`
552557 JVMOpts string `yaml:"jvm_opts"`
558+ JavaHome string `yaml:"java_home"`
553559 RunModes string `yaml:"run_modes"`
554560 HTTPPort string `yaml:"http_port"`
555561 Password string `yaml:"password"`
You can’t perform that action at this time.
0 commit comments