Skip to content

Ensure git clone base directory exists on startup#111

Merged
creydr merged 1 commit into
functions-dev:mainfrom
creydr:fix/ensure-git-repos-dir
Apr 29, 2026
Merged

Ensure git clone base directory exists on startup#111
creydr merged 1 commit into
functions-dev:mainfrom
creydr:fix/ensure-git-repos-dir

Conversation

@creydr
Copy link
Copy Markdown
Collaborator

@creydr creydr commented Apr 29, 2026

Summary

  • Make git.NewManager() return an error and call os.MkdirAll to ensure /git-repos exists
  • While the Kubernetes deployment uses an emptyDir volume mount for this path, this provides a safety net for local development or non-standard environments

Create /git-repos directory in NewManager() if it doesn't exist,
providing a safety net for environments where the emptyDir volume
mount may not be configured.
@creydr creydr enabled auto-merge April 29, 2026 08:02
@creydr creydr added this pull request to the merge queue Apr 29, 2026
Merged via the queue into functions-dev:main with commit eecccc9 Apr 29, 2026
11 checks passed
@creydr creydr deleted the fix/ensure-git-repos-dir branch April 29, 2026 10:58
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.

1 participant