Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submodules appear as regular directories #269

Open
ov-wagle opened this issue Nov 29, 2023 · 1 comment
Open

Submodules appear as regular directories #269

ov-wagle opened this issue Nov 29, 2023 · 1 comment

Comments

@ov-wagle
Copy link

core.workflow(
    name = "default",
    origin = git.origin(
      ...
      submodules = "RECURSIVE",
      ...
    ),
    destination = git.destination(
        ...
    ),

    destination_files = glob(["**"]),
    origin_files = glob(["**"]),

    authoring = authoring.pass_thru("Email"),
)

I have a module having various submodules in it. I am using copybara to copybara non IP code to the public repository. However, when I run the tool, my submodule gets copied as a normal directory rather than getting copied as submodule.

@hsudhof
Copy link
Collaborator

hsudhof commented Dec 5, 2023

Copybara materializes submodules, it does not currently support to create submodules in the destination with core.workflow. This is because submodules are git specific and wouldn't transfer to other SCMs.

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

No branches or pull requests

2 participants