spkenv / spk

A Package Manager for high velocity software environments, built on spfs.
https://spkenv.dev
Apache License 2.0
40 stars 6 forks source link

Support Self-Referencing in Templates #1135

Open rydrman opened 1 month ago

rydrman commented 1 month ago

Describe the solution you'd like

Similar to the Ansible workflow, spec files should be able to reference other parts of the same yaml file while templating (such as the package name or version). This will mean the need to recurse into the yaml data and resolve fields incrementally rather than rendering the whole template at once.