I'm working on getting `atmos describe affected` i...
# atmos
d
I'm working on getting
atmos describe affected
integrated into some of our workflows. It currently reports that every single component/stack has changed all of their properties. How should I go about debugging this?
Using --logs-level=Trace I see that it correctly detects the changed files from the current ref and provided ref (only changes in my feature branch show), but all components are shown as affected with:
Copy code
DEBU Affected components and stacks:
[
  {
    ...
    "affected": "stack.metadata",
    "affected_all": [
      "stack.metadata",
      "stack.vars",
      "stack.env",
      "stack.settings"
    ],
urgh i think this is another stack naming bug like i found previously where the remote stacks are using the file path rather than the name template
a
@Dan Hansen if possible, can you please show more details on the config and the bug - we'll add it to tests and to "Troubleshooting"
d
will do. currently in the goland debugger
a
please try to run
atmos describe affected
locally from the root of the repo
d
yes that does seem to fix it!
ATMOS_BASE_PATH=./libs/atmos atmos describe affected --config=./libs/atmos/atmos.yaml
e
hrmmm I so
ATMOS_BASE_PATH
is these days auto-detected if not set. I'm curious why you had to set it. I assume you're on a recent version of atmos?
d
When I only specify
ATMOS_CLI_CONFIG_PATH
I get this error:
Copy code
atmos.yaml CLI config file specifies the directory for Atmos stacks as stacks, but the directory does not exist.
e
with
--logs-level=Debug
do you see what directory it thinks does not exist? Have you set the base path in your atmos config? (libs is not our default)
are you running this from within a git repo or outside a gitrepo (we default to the repo root)
d
ah, yes,
base_path
is
./
in the atmos.yaml
e
so you can unset that, and atmos will make a best guess
❤️ 1
it'll also let you run
atmos
from anywhere in the repo, and it will just know where to find things.