Skip to content

Commit f922cc4

Browse files
OakRun offline
1 parent 11e66ba commit f922cc4

File tree

6 files changed

+24
-6
lines changed

6 files changed

+24
-6
lines changed

.goreleaser.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ snapshot:
5050
version_template: "{{ incpatch .Version }}-next"
5151

5252
changelog:
53+
use: github
5354
sort: asc
5455
filters:
5556
exclude:

examples/docker/src/aem/default/etc/aem.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,11 @@ vendor:
277277
download_url: "https://repo1.maven.org/maven2/org/apache/jackrabbit/oak-run/1.72.0/oak-run-1.72.0.jar"
278278
store_path: "crx-quickstart/repository/segmentstore"
279279

280+
# Pre-installed local JAR file
281+
# a) keep it empty to download it automatically
282+
# b) set it to an absolute path to skip downloading
283+
jar_file: ""
284+
280285
# Content clean options
281286
content:
282287
clean:

pkg/oak_run.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ func (or OakRun) Dir() string {
3939

4040
func (or OakRun) lock() osx.Lock[OakRunLock] {
4141
return osx.NewLock(or.Dir()+"/lock/create.yml", func() (OakRunLock, error) {
42-
return OakRunLock{
43-
DownloadURL: or.DownloadURL,
44-
}, nil
42+
return OakRunLock{DownloadURL: or.DownloadURL}, nil
4543
})
4644
}
4745

@@ -53,13 +51,12 @@ func (or OakRun) PrepareWithChanged() (bool, error) {
5351
}
5452

5553
if or.JarFile != "" {
56-
// No preparation needed if using a local JAR
57-
log.Infof("using Oak Run JAR from local file '%s'", or.JarFile)
54+
log.Debugf("using OakRun from JAR file '%s'", or.JarFile)
5855
return false, nil
5956
}
6057

6158
if check.UpToDate {
62-
log.Debugf("existing OakRun '%s is up-to-date", or.DownloadURL)
59+
log.Debugf("existing OakRun '%s' is up-to-date", or.DownloadURL)
6360
return false, nil
6461
}
6562
log.Infof("preparing new OakRun '%s'", or.DownloadURL)

pkg/project/app_classic/aem/default/etc/aem.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,11 @@ vendor:
279279
download_url: "https://repo1.maven.org/maven2/org/apache/jackrabbit/oak-run/1.72.0/oak-run-1.72.0.jar"
280280
store_path: "crx-quickstart/repository/segmentstore"
281281

282+
# Pre-installed local JAR file
283+
# a) keep it empty to download it automatically
284+
# b) set it to an absolute path to skip downloading
285+
jar_file: ""
286+
282287
# Content-related options
283288
content:
284289
clean:

pkg/project/app_cloud/aem/default/etc/aem.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,11 @@ vendor:
279279
download_url: "https://repo1.maven.org/maven2/org/apache/jackrabbit/oak-run/1.72.0/oak-run-1.72.0.jar"
280280
store_path: "crx-quickstart/repository/segmentstore"
281281

282+
# Pre-installed local JAR file
283+
# a) keep it empty to download it automatically
284+
# b) set it to an absolute path to skip downloading
285+
jar_file: ""
286+
282287
# Content-related options
283288
content:
284289
clean:

pkg/project/instance/aem/default/etc/aem.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ vendor:
274274
download_url: "https://repo1.maven.org/maven2/org/apache/jackrabbit/oak-run/1.72.0/oak-run-1.72.0.jar"
275275
store_path: "crx-quickstart/repository/segmentstore"
276276

277+
# Pre-installed local JAR file
278+
# a) keep it empty to download it automatically
279+
# b) set it to an absolute path to skip downloading
280+
jar_file: ""
281+
277282
# Content-related options
278283
content:
279284
clean:

0 commit comments

Comments
 (0)