Skip to content

internal/controller: add cache directory creation in NewAtlasExec#352

Closed
chinhnguyenh wants to merge 1 commit intomasterfrom
c/rshid
Closed

internal/controller: add cache directory creation in NewAtlasExec#352
chinhnguyenh wants to merge 1 commit intomasterfrom
c/rshid

Conversation

@chinhnguyenh
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates NewAtlasExec to ensure Atlas CLI runs with a safer HOME default and proactively creates a cache directory in environments where the home directory is derived from DATA_DIR or needs to be overridden.

Changes:

  • Add cache directory selection/creation logic in NewAtlasExec.
  • Treat HOME="/" the same as unset and default to /tmp for safety.
  • Create ${HOME}/.cache (or /tmp/.cache) when using these fallback/home derivation paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants