Closed rbygrave closed 1 year ago
ok, pretty sure this isn't quite right. There are 2 cases it doesn't quite do the "right thing".
I think the 2 options for improving this are: A) RESOURCE for profiles is loaded after loadMain(FILE) which is the original ordering before this PR B) Keep track of profile RESOURCE that are loaded, after loadMain(FILE) then any profile RESOURCE not already previously loaded is loaded
Both of these options solve those 2 issues above. Hmm, pondering ... but maybe leaning towards option B.
Config generally loads RESOURCE source first, and FILE source later. This allows the FILE source properties to override the RESOURCE source properties in a predictable manner.