Skip to content

When sources are deleted manually it is not possible to run protofetch fetch again #27

@saraiva132

Description

@saraiva132

Since we are using git worktree to build sources directory tree, when sources are deletes manually (from ~./protofetch/cache), it is not possible to run protofetch fetch since the worktree already exists (the metadata). Thus, that metadata needs to also be deleted for it work again. The library does not support git worktree removal at the time this ticket was opened.

Tip: Look at fetch::fetch method

Edit: Since now we copy proto files as the actual output that is fine to delete. Only the folder inside cache with the source code errors out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions