Skip to content

Conversation

@jandubois
Copy link
Member

Fixes:

cat test.tmpl
images: [{location: foo.raw}]
provision:
- mode: data
  path: /etc/foo
  content: |
    FOO={{.Param.FOO}}
param:
  FOO: barlimactl tmpl copy --fill test.tmpl -
FATA[0000] field `param` key "FOO" is not used in any provision, probe, copyToHost, or portForward

With this PR:

❯ limactl tmpl copy --fill test.tmpl - | yq '.provision[0].content'
FOO=bar

Signed-off-by: Jan Dubois <jan.dubois@suse.com>
@jandubois jandubois added this to the v2.0.0 milestone Aug 22, 2025
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Eventually we should have a test suite for this

@AkihiroSuda AkihiroSuda merged commit 319a052 into lima-vm:master Aug 25, 2025
36 checks passed
@jandubois jandubois deleted the data-param branch August 25, 2025 00:37
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.

2 participants