Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit 3cf08c2

Browse files
oleggatorLeonidVas
authored andcommitted
pack: run post-build stage after cache update
1 parent 7674be6 commit 3cf08c2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1111

1212
- Updated `cartridge` to `2.7.6` and `metrics` to `0.15.1` in application template.
1313
- Now file times are preserved when copying.
14+
- Now packing cache saves before post-build stage
1415

1516
## [2.12.3] - 2022-11-09
1617

cli/pack/app_dir.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,16 @@ func initAppDir(appDirPath string, ctx *context.Ctx) error {
9898
return err
9999
}
100100

101-
// post-build
102-
if err := build.PostRun(ctx); err != nil {
103-
return err
104-
}
105-
106101
// Update cache in cartridge temp directory
107102
if err := updateCache(cachePaths, ctx); err != nil {
108103
log.Warnf("%s", err)
109104
}
110105

106+
// post-build
107+
if err := build.PostRun(ctx); err != nil {
108+
return err
109+
}
110+
111111
// generate VERSION file
112112
if err := generateVersionFile(appDirPath, ctx); err != nil {
113113
log.Warnf("Failed to generate VERSION file: %s", err)

0 commit comments

Comments
 (0)