← Back to issue list

Enforce that the build and run base are the same* base

View original Github issue

Metadata

Project
craft-application
Number
#915
Type
issue
State
open
Author
lengau
Labels
Created
2025-09-19 15:18:47+00:00
Updated
2025-09-19 19:38:00+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done With certain exceptions, `build-base` and `base` should not be able to differ from each other. `build-base` is thus optional but must match `base`. Currently known exceptions: - `base: bare` allows any build base, but it requires `build-base` to be defined. - Any in-development base must be matched with its appropriate build-base. (Craft Application provides those mappings, but the app can apply supplemental mappings. An in-development base is defined as one that exists in either of those mappings.) - An app may implement a method that provides specific overrides, but the use of this method is discouraged and only there for legacy purposes ### Why it needs to get done Currently apps are enforcing this (or not enforcing it) ad-hoc. We should move to this being strictly enforced with the app being able to loosen those requirements if needed.

Evaluation history

No evaluation history available.