Skip to content

feat(forge): avoid repulling in dependencies when using git worktree #11075

@colin-morpho

Description

@colin-morpho

Component

Forge

Describe the feature you would like

I often find myself in the following situation.
I work on a new feature for repo r so I:

$ cd r
$ git worktree add -b new-feature-a features/new-feature-a
$ cd features/new-feature-a
$ git submodule sync
$ foundry i

This process is annoying because I have to sync submodules and install dependencies which is often long, instead I would expect dependencies to be shared across worktrees, or at least cached.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-forgeCommand: forgeCmd-forge-pmCommand: forge install/update/removeT-featureType: feature

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions