Skip to content

chain of inheritance, mixins and list properties #636

@mneiger

Description

@mneiger

Hi,

I'm using resticprofile 0.33.1 compiled with go1.26.2 linux/amd64 on linux mint and debian:

My actual configuration is rather complex but I traced the problem down to this simple yaml config.

version: 2

global:

mixins:
  docheck:
    run-before...:
      - echo "2 run-before docheck"

profiles:
  base:
    run-before: 
      - echo "1 run-before base"

  stations:
    inherit: base

  stationsa:
    inherit: base
    use: docheck

  stationsb:
    inherit: stations
    use: docheck


running resticprofiles -n stations[a,b] show I get

profile stationsa:
    run-before:              echo "1 run-before base"
                             echo "2 run-before docheck"
profile stationsb:
    run-before:              echo "2 run-before docheck"

according to my understanding, the run-before for both profiles stationsa and stationsb should be identical, but only stationsa seems right, stationsb lost inherited material.

cheers and thanks for great software.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions