-
What would you like to do?Give feedback or suggest an improvement DescriptionIf multiple profiles are supplied, but different profiles contain different configurations for the same key, what happens? If one of the supplied profiles is missing, does it simply get ignored ? Also see #13368 Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Thanks for the questions. I moved you question to discussions which we prefer to use for such questions. Multiple profiles with conflicting keysProfiles are merged in order with the first-listed profile taking priority. The relevant code: quarto-cli/src/project/project-profile.ts Lines 171 to 179 in 45ecb6e The merge semantics mirror the general metadata merging (https://quarto.org/docs/projects/quarto-projects.html#metadata-merging) behavior:
Missing profilesYes, a missing profile is silently ignored. If I'll try to update the doc to add info on those. |
Beta Was this translation helpful? Give feedback.
Thanks for the questions.
I moved you question to discussions which we prefer to use for such questions.
Multiple profiles with conflicting keys
Profiles are merged in order with the first-listed profile taking priority. The relevant code:
quarto-cli/src/project/project-profile.ts
Lines 171 to 179 in 45ecb6e
The merge semantics mirror the…