Skip to content

fix: replace CLAUDE.md symlink with an @AGENTS.md import - #49

Merged
trisdoan merged 1 commit into
mainfrom
fix/claude-md-import-not-symlink
Sep 9, 2026
Merged

trisdoan merged 1 commit into
mainfrom
fix/claude-md-import-not-symlink

Conversation

@nilshamerlinck

Copy link
Copy Markdown
Contributor

Summary

  • CLAUDE.md was a git symlink to AGENTS.md. GitHub Actions downloads a composite action's repo as an archive (not a git clone) when referenced via uses: trobz/deploy.py@<tag>, and archive extraction on the hosted runner has an intermittent regression that fails to materialize that symlink — aborting the job before any step runs with Could not find file '.../CLAUDE.md' (seen on odoo-changes-analyzor run 34221192344).
  • Downstream, odoo-changes-analyzor worked around this by pinning to trobz/deploy.py@v0.6.1 (17+ releases behind), because that tag's action package happened to already be cached on runners before the regression started appearing.
  • Fix: Claude Code's memory files support @path imports, so CLAUDE.md is now a plain file containing @AGENTS.md instead of a symlink. Claude Code loads it identically, but the tagged archive no longer contains a symlink, so the runner extraction bug can't be triggered. As a bonus this also drops the Windows caveat that real symlinks need admin/dev mode.

Test plan

  • CLAUDE.md is now mode 100644 (git ls-files -s CLAUDE.md), not 120000
  • Bump odoo-changes-analyzor's deploy workflow off the v0.6.1 pin once this is released, and confirm the composite action download succeeds

CLAUDE.md was a git symlink to AGENTS.md. GitHub Actions downloads a
composite action's repo as an archive (not a git clone) when it's
referenced via `uses: trobz/deploy.py@<tag>`, and archive extraction
on the hosted runner intermittently fails to materialize that
symlink, aborting the job before any step runs
("Could not find file .../CLAUDE.md" — see
odoo-changes-analyzor run 34221192344).

Claude Code's memory files support `@path` imports, so a plain
CLAUDE.md containing `@AGENTS.md` is loaded identically to the
symlinked version, without shipping a symlink in the tagged archive.
This also drops the Windows caveat (symlinks there need admin/dev
mode) that the import syntax doesn't have.
@trisdoan
trisdoan merged commit 20413f2 into main Sep 9, 2026
7 checks passed
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