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

No overwrite for object list #52

Closed
Rafnuss opened this issue Sep 10, 2024 · 2 comments
Closed

No overwrite for object list #52

Rafnuss opened this issue Sep 10, 2024 · 2 comments

Comments

@Rafnuss
Copy link

Rafnuss commented Sep 10, 2024

Just trying to understand what I'm doing wrong with this config file

default:
  val: 1
  tag_set_map:
    - stap_id: [3, -1]

22NO:
  val: 2
  tag_set_map:
    - stap_id: 3

This makes sense to me:

config::get(config = "22NO")$val
#> 2

But not this:

config::get(config = "22NO")$tag_set_map
#> [[1]]
#> [[1]]$stap_id
#> [1]  3 -1

How come 22NO is not overwriting the default for object list items? Or did I do something wrong?
Thanks,

@Rafnuss
Copy link
Author

Rafnuss commented Sep 10, 2024

Looks the same as #42, so no solution than naming the list right?

@andrie
Copy link
Member

andrie commented Jan 8, 2025

Yes. Lists will get merged recursively, so naming your list seems like a good workaround.

@andrie andrie closed this as completed Jan 8, 2025
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

No branches or pull requests

2 participants