Skip to content

Unexpected files changed outside of the destination configuration #312

@claydiffrient

Description

@claydiffrient

Something seem to be odd in the way that Copybara handles files in the destination repository. It's changing files that I wouldn't expect to change.

I've set up a workflow with a configuration like this:

origin_files = glob([
  "readme.md",
  "LICENSE",
  "src/**",
]),
destination_files = glob([
   "third_party/package/**"
], exclude = [
   "third_party/package/copy.bara.sky"
]),
transformations = [
   core.move("", "third_party/package")
]

And then when I run it, I get a bunch of changes in my repository on several files that are outside of third_party/package. All of which appear to be differences in line endings. These changes don't exist outside of the branch that Copybara created and pushed up.

I'm wondering if the way Copybara detects changes when it pulls the destination repository is different or handled differently than the normal MacOS system does. But regardless, it seems like it should only be doing a git add third_party/package/ and ignore those things anyway.

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