Defers calling config.LoadDefault() every time assume is called, which makes startup instant rather than taking ~1s to obtain an access token.
Why?
Makes assume run a lot faster when HTTP Profile Registries are used.
How did you test it?
Confirmed locally, by running GRANTED_LOG=debug dassume. Here's the latest release -- you can see in the debug logs that we fetch a token every time Granted runs:
Whereas the dev build no longer fetches the token:
❯ GRANTED_LOG=debug dassume
[DEBUG] checking if autosync has been run for the day
[DEBUG] skipping profile registry sync until tomorrow=%s/Users/chrisnorman/Library/Application Support/commonfate/registry-sync
[DEBUG] process args execFlag: osargs:[dassumego] c.args:[]
[DEBUG] processed profile name
[DEBUG] exec config:<nil>
Potential risks
Affects the HTTP profile registry component of Granted.
What changed?
Defers calling
config.LoadDefault()
every timeassume
is called, which makes startup instant rather than taking ~1s to obtain an access token.Why?
Makes
assume
run a lot faster when HTTP Profile Registries are used.How did you test it?
Confirmed locally, by running
GRANTED_LOG=debug dassume
. Here's the latest release -- you can see in the debug logs that we fetch a token every time Granted runs:Whereas the dev build no longer fetches the token:
Potential risks
Affects the HTTP profile registry component of Granted.
Is patch release candidate?
Yes