Skip to content

feat(gvm): add git worktree support for source installs - #18

Merged
brianrobt merged 1 commit into
masterfrom
feat/source-worktrees
Jul 24, 2026
Merged

brianrobt merged 1 commit into
masterfrom
feat/source-worktrees

Conversation

@brianrobt

Copy link
Copy Markdown
Owner

Source installs now prefer git worktree from the cached Go repo under ~/.gvm/archive/go instead of always doing a full git clone. This reduces disk usage and avoids clone failures in some container environments. A git clone fallback is retained for environments where worktrees are unavailable.

Uninstall and compile-failure cleanup now use
__gvm_remove_go_install_dir to properly unregister worktree entries from the cache repo before removing the directory, preventing stale worktree registrations.

Closes #12 / moovweb/gvm#505

Source installs now prefer `git worktree` from the cached Go repo
under `~/.gvm/archive/go` instead of always doing a full `git clone`.
This reduces disk usage and avoids clone failures in some container
environments. A `git clone` fallback is retained for environments
where worktrees are unavailable.

Uninstall and compile-failure cleanup now use
`__gvm_remove_go_install_dir` to properly unregister worktree
entries from the cache repo before removing the directory, preventing
stale worktree registrations.

Closes #12 / moovweb/gvm#505
@brianrobt
brianrobt merged commit b52a398 into master Jul 24, 2026
6 checks passed
@brianrobt
brianrobt deleted the feat/source-worktrees branch July 24, 2026 14:52
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.

Use git worktrees for source Go installs

1 participant