Skip to content

Pattern changes don't trigger re-extraction of files #21

Description

@jdc-pub

When an existing vendor has already been fetched at a commit, adding new patterns via git vendor track or editing .gitvendors doesn't re-extract files matching the new patterns from that already-fetched commit.

To work around this, users must remove the vendor and re-add it with all desired patterns.

Steps to reproduce:

  1. Add a vendor with one pattern: git vendor add <url> -p 'file1:.path/'
  2. Try to add another pattern: git vendor track <name> 'file2:.path/'
  3. Run git vendor pull <name>
  4. file2 is not extracted (even though file2 exists in the upstream commit)

Expected: New patterns should be applied to already-fetched commits, extracting matching files.

Activity

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