Fetch values from base packges

Hello,
I’m trying to add versions to my yaml config files.
I have this structure:

  • base.yaml - basic data like wifi
    • uC.yaml - definition of uC\framework
      • device_type.yaml - definition of the device like gpio, sensors, etc,
        • device.yaml - naming, ip

each includes each parent as a package and it works really well, but I wanted for every device to have a version that also contains the version of each parent. Ex:

  • base-version.uc-version.device_type-version.device-version
  • base-2.esp32-4.minir4-3.wc_llight-5

I was thinking of using project.version, but the include will override that attribute, is there a way to access the parent attribute and concat it? like
project:
_ version: ${super.project.version}.esp32-10
does anyone knows if this is possible?
Best Regards,
Tiago Freitas

I hear that GitHub does versioning very well, or are you trying to do nested includes?

1 Like

I’ll have a look into github versioning and yes I’m using nested includes. What i just need is to get the parent content.