what
- Fix
atmos
CLI config processing - Improve
logs.verbose
why
- Fix issues with CLI config processing introduced in #210
- In
Go
, a struct is passed by value to a function (the whole struct is copied), so if the function modifies any struct fields, the changes are not visible from outside of the functions - The function
processEnvVars
was accepting the CLI config struct by value, checking the ENV varATMOS_BASE_PATH
and modifying theBasePath
field - this modification was lost when the function returned resulting in the error from theutils
provider "failed to find a match for the import ..." because theatmos
base path was not set correctly (note thatATMOS_BASE_PATH
ENV var is critical for theutils
provider to work, and it's set bygeodesic
or by Spacelift scripts) - Changing the function to accept a pointer to the struct fixed the issue (the modified fields are visible to the calling code)