Skip to content

Update MODULE.bazel.lock file as part of Copybara workflow #343

Description

@guw

We are using copybara this to push a set of common Bazel files into several other repositories. Some updates require updating the lock file in each of these destinations. We use git.github_pr_destination to push all modifications as single PR. Ideally the lock file update could be included there, i.e. something like a "bazel run" transformation would be nice. I couldn't find a way to do it in the examples/docs.

At minimum, I would like to run bazel mod deps to update the MODULE.bazel.lock file. A bonus would allowing me to run an arbitrary Bazel target (eg., bazel run //foo) as part of after_migration.

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