Skip to content

setup creates absolute symlinks for vendored installs, breaks portability #954

Closed as not planned

Description

@hyldmo

Bug

link_claude_skill_dirs() in setup (line 328) creates SKILL.md symlinks using absolute paths:

ln -snf "$gstack_dir/$dir_name/SKILL.md" "$target/SKILL.md"

For global installs this is fine, but for vendored/local installs (INSTALL_TYPE=vendored), $gstack_dir resolves to an absolute path like /Users/alice/myproject/.claude/skills/gstack/qa/SKILL.md. This means:

  1. The symlinks only work on the machine that ran ./setup
  2. Other developers cloning the repo get broken symlinks
  3. git diff shows churn converting relative → absolute on every upgrade

The comment on line 323 says "absolute path" explicitly, so this seems intentional — but it shouldn't be for vendored installs.

Expected

For vendored installs, symlinks should be relative (e.g., ../gstack/qa/SKILL.md), matching what would be committed to the repo.

Repro

  1. Vendored gstack in a project repo (.claude/skills/gstack/)
  2. Run ./setup or /gstack-upgrade (which runs ./setup)
  3. Check symlinks: readlink .claude/skills/qa/SKILL.md
  4. See absolute path instead of ../gstack/qa/SKILL.md

Workaround

After upgrade, fix symlinks manually:

cd .claude/skills
for dir in */; do
  [ "$dir" = "gstack/" ] && continue
  if [ -L "${dir}SKILL.md" ]; then
    target=$(readlink "${dir}SKILL.md")
    if [[ "$target" == /* ]]; then
      ln -sf "../gstack/${dir}SKILL.md" "${dir}SKILL.md"
    fi
  fi
done

Version

v0.16.2.0

Activity

  1. added a commit that references this issue on Apr 10, 2026
    cc3e08b
  2. time-attack commented on Jul 15, 2026

    @time-attack
    Contributor

    @hyldmo Portable vendored installs remain unresolved because setup still creates absolute symlinks until the selected implementation lands.

  3. capy-ai commented on Oct 17, 2026

    @capy-ai
    Contributor

    Thanks for the detailed report, @hyldmo. Vendored installs are deprecated: gstack now prompts vendored projects to migrate to team mode (git rm -r .claude/skills/gstack/, add it to .gitignore, run gstack-team-init), which keeps symlinks out of the repo entirely. For that reason we're not going to make setup emit relative links for vendored copies.

    Closing as won't-fix. The workaround in your report still works for anyone who stays vendored, and if team mode doesn't fit your setup, please open a new issue describing it.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions