Skip to content

fix(config): honor configured deploy base layers#561

Merged
iloveitaly merged 1 commit into
railwayapp:mainfrom
radiantjade:apply-configured-deploy-base
Jun 2, 2026
Merged

fix(config): honor configured deploy base layers#561
iloveitaly merged 1 commit into
railwayapp:mainfrom
radiantjade:apply-configured-deploy-base

Conversation

@radiantjade
Copy link
Copy Markdown
Contributor

Fixes #551.

deploy.base is already parsed from railpack.json, but it was not copied into the deploy builder during config application. This applies a non-empty configured deploy base so custom runtime images show up in the generated plan.

When runtime apt packages are configured, the generated packages:apt:runtime step now uses the configured deploy base as its first input, preserving the existing apt layering behavior.

Verification:

  • go test ./core/generate -run TestGenerateContextAppliesConfiguredDeployBase
  • go test ./core/generate -run TestGenerateContext
  • go test ./core/generate
  • git diff --check

@iloveitaly iloveitaly changed the title Honor configured deploy base layers fix(config): honor configured deploy base layers Jun 1, 2026
Railpack parses deploy.base from railpack.json but previously did not copy it into the deploy builder. Apply non-empty configured deploy base layers so custom runtime images are reflected in the generated plan, including as the base input for runtime apt package steps.

Constraint: Runtime apt packages still need to wrap the selected deploy base in packages:apt:runtime.

Rejected: Only set deploy.base directly after build | would bypass runtime apt package layering.

Confidence: high

Scope-risk: narrow

Tested: go test ./core/generate -run TestGenerateContextAppliesConfiguredDeployBase

Tested: go test ./core/generate -run TestGenerateContext

Tested: go test ./core/generate

Tested: git diff --check
@iloveitaly iloveitaly force-pushed the apply-configured-deploy-base branch from 851e74b to de6fdb8 Compare June 1, 2026 18:59
@iloveitaly iloveitaly merged commit 934898a into railwayapp:main Jun 2, 2026
461 of 463 checks passed
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.

deploy.base.image in railpack.json is parsed but ignored when generating the deploy base layer

2 participants