You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
install: GitHub Contents API fallback drops the exec bit on scripts #439
When a subdir install falls back to the GitHub Contents API, every file is written with mode 0644. Scripts under a skill's scripts/ lose their exec bit on that path, while the sparse-checkout and clone paths preserve it (copyDir keeps modes). Users hit it only when sparse checkout fails, which makes it look intermittent.
internal/install/copy.go — the git paths preserve file mode
Fix
The Contents API does not return the mode, but the tree API (GET /repos/{owner}/{repo}/git/trees/{sha}?recursive=1) returns mode (100755) per entry. Either fetch the tree once and apply modes, or at minimum mark files under scripts/ executable. Add a test with a 100755 fixture.
Found while researching #239 (shared scripts, §2); relevant to any skill that ships scripts.
Activity
fix(install): keep scripts executable on content API downloads