Skip to content

Restart instance when Java changed#312

Merged
krystian-panek-vmltech merged 1 commit intomainfrom
java-home-in-instance-lock
Aug 4, 2025
Merged

Restart instance when Java changed#312
krystian-panek-vmltech merged 1 commit intomainfrom
java-home-in-instance-lock

Conversation

@krystian-panek-vmltech
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds Java home directory tracking to the local instance update lock mechanism to enable instance restarts when the Java installation changes.

  • Adds JavaHome field to the update lock structure to track Java installation path
  • Retrieves and stores the current Java home directory when creating update locks
Comments suppressed due to low confidence (1)

pkg/local_instance.go:536

  • [nitpick] The variable name 'javaHomeDir' is inconsistent with the struct field name 'JavaHome'. Consider renaming to 'javaHome' for consistency.
		javaHomeDir, err := li.JavaManager().FindHomeDir()

@krystian-panek-vmltech krystian-panek-vmltech merged commit 1955518 into main Aug 4, 2025
1 check passed
@krystian-panek-vmltech krystian-panek-vmltech deleted the java-home-in-instance-lock branch August 4, 2025 11:00
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