Closed timburks closed 1 year ago
IIRC, ActiveRaw() returns exactly the contents of the config whereas ActiveConfig() returns a resolved set of vars that can include params and env var overrides.
Another suspicious thing that I see is that connection.ActiveConfig()
just directly reads the configuration instead of using config.ActiveRaw()
or config.Active()
(I think this is what it should be calling).
Unfortunately #1230 didn't fully fix #1228.
This now works:
But this doesn't:
I can't explain why one of these commands should be getting its configuration differently from the other, but I observe that
registry config list
callsconfig.ActiveRaw()
here andregistry get projects
callsconnection.ActiveConfig()
here.Looking further, I see that
config.ActiveRaw()
is only used by theregistry config
subcommands andregistry auth print-token
, and all the others useconnection.ActiveConfig()
.@theganyo do you know why we have two ways of doing this? Is there something to watch out for in merging them?