Skip to content

OakRun offline#324

Merged
krystian-panek-vmltech merged 1 commit intomainfrom
oak-run-local
Aug 28, 2025
Merged

OakRun offline#324
krystian-panek-vmltech merged 1 commit intomainfrom
oak-run-local

Conversation

@krystian-panek-vmltech
Copy link
Copy Markdown
Contributor

@krystian-panek-vmltech krystian-panek-vmltech commented Aug 28, 2025

fixes #315

@krystian-panek-vmltech krystian-panek-vmltech merged commit 7f842be into main Aug 28, 2025
1 check passed
@krystian-panek-vmltech krystian-panek-vmltech deleted the oak-run-local branch August 28, 2025 09:24
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 offline mode support for OakRun by allowing users to specify a pre-installed local JAR file path instead of downloading it automatically. This enhances the tool's flexibility for environments with restricted internet access or when users prefer to manage JAR files locally.

Key changes:

  • Added jar_file configuration option to all AEM configuration templates
  • Improved logging messages for clarity and consistency
  • Minor code formatting cleanup

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/project/instance/aem/default/etc/aem.yml Added jar_file configuration option with documentation
pkg/project/app_cloud/aem/default/etc/aem.yml Added jar_file configuration option with documentation
pkg/project/app_classic/aem/default/etc/aem.yml Added jar_file configuration option with documentation
pkg/oak_run.go Improved logging messages and minor formatting cleanup
examples/docker/src/aem/default/etc/aem.yml Added jar_file configuration option with documentation
.goreleaser.yaml Added GitHub changelog configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

if or.JarFile != "" {
// No preparation needed if using a local JAR
log.Infof("using Oak Run JAR from local file '%s'", or.JarFile)
log.Debugf("using OakRun from JAR file '%s'", or.JarFile)
Copy link

Copilot AI Aug 28, 2025

Choose a reason for hiding this comment

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

The log message uses 'OakRun' but should be consistent with 'Oak Run' (with space) as used elsewhere in the codebase for better consistency.

Suggested change
log.Debugf("using OakRun from JAR file '%s'", or.JarFile)
log.Debugf("using Oak Run from JAR file '%s'", or.JarFile)

Copilot uses AI. Check for mistakes.
version_template: "{{ incpatch .Version }}-next"

changelog:
use: github
Copy link

Copilot AI Aug 28, 2025

Choose a reason for hiding this comment

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

[nitpick] This changelog configuration change appears unrelated to the OakRun offline functionality described in the PR title. Consider moving this change to a separate PR for better commit organization.

Copilot uses AI. Check for mistakes.
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.

Offline oak-run option

2 participants