Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile-config yaml variable templating with !path #32

Closed
2 tasks done
tschwarzl opened this issue Oct 16, 2024 · 1 comment · Fixed by #36
Closed
2 tasks done

compile-config yaml variable templating with !path #32

tschwarzl opened this issue Oct 16, 2024 · 1 comment · Fixed by #36

Comments

@tschwarzl
Copy link
Contributor

Description of bug

params.in.yaml

A:  !path "0100_ETL"
B:  "{{ A }}/0101_DataTransfer"

leads to

B: 
  <dso.compile_config._load_yaml_with_auto_adjusting_paths.<locals>.AutoAdjustingPathWithLocation
  object at 0x7f869e8c69d0>/0101_DataTransfer

while

A: "0100_ETL"
B: !path "{{ A }}/0101_DataTransfer"

leads to

A: 0100_ETL
B: '{{ s0100 }}/0101_DataTransfer'

DSO Error log

No response

Before submitting

  • I am using the latest release of DSO.
  • I have included a full DSO log, not truncated.
@tschwarzl
Copy link
Contributor Author

Also,

A: "test"
B: !path "dir/{{ test }}"

results in

B: dir/{{ test }}

It seems that !path has problems with variable templating

@tschwarzl tschwarzl changed the title compile-config yaml variables with !path does not compile right compile-config yaml variable templating with !path Oct 16, 2024
@grst grst mentioned this issue Oct 18, 2024
@grst grst closed this as completed in #36 Oct 22, 2024
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 a pull request may close this issue.

1 participant