Skip to content

fix: dereference symlinks when copying git skill subpaths#1649

Open
samskelton1 wants to merge 1 commit intokagent-dev:mainfrom
samskelton1:fix/skills-subpath-symlink-copy
Open

fix: dereference symlinks when copying git skill subpaths#1649
samskelton1 wants to merge 1 commit intokagent-dev:mainfrom
samskelton1:fix/skills-subpath-symlink-copy

Conversation

@samskelton1
Copy link
Copy Markdown

@samskelton1 samskelton1 commented Apr 10, 2026

Summary

When a git skill uses a path, the init script copies the selected subdirectory and then removes the original clone root. With cp -a, symlinks inside that subdirectory are preserved as symlinks, so repo-internal links can break once the clone root is deleted.

This switches that copy step to cp -rL so symlink targets are materialized before the source repo is removed.

Verification

  • GOCACHE=/tmp/go-build GOMODCACHE=/tmp/go-mod-cache go test ./core/internal/controller/translator/agent/...

Copilot AI review requested due to automatic review settings April 10, 2026 20:26
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