Skip to content

[Proposal] Added fn::final built-in to prevent overriding values#621

Open
tehsis wants to merge 1 commit intomainfrom
pterradillos/fnfinal
Open

[Proposal] Added fn::final built-in to prevent overriding values#621
tehsis wants to merge 1 commit intomainfrom
pterradillos/fnfinal

Conversation

@tehsis
Copy link
Collaborator

@tehsis tehsis commented Feb 24, 2026

This pr adds support for fn::final built-in function which prevents overriding properties defined on a parent environment.

eg.

env proj/base:

values:
  foo:
    fn::final: 4

env proj/child:

imports:
  - proj/base
values:
  foo: 5

results in
Error: cannot override final value

@tehsis tehsis changed the title Added fn::final built-in to prevent overriding values [Proposal] Added fn::final built-in to prevent overriding values Feb 24, 2026
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.

1 participant