github cloudposse/atmos v1.10.1

latest releases: v1.88.1, v1, v1.88.0...
23 months ago

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 var ATMOS_BASE_PATH and modifying the BasePath field - this modification was lost when the function returned resulting in the error from the utils provider "failed to find a match for the import ..." because the atmos base path was not set correctly (note that ATMOS_BASE_PATH ENV var is critical for the utils provider to work, and it's set by geodesic 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)

Don't miss a new atmos release

NewReleases is sending notifications on new releases.