You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: configuration files can be stored in any place, even in a local folder.
121
128
We recommend using a VCS (like git) to store them; treat them as source code.
122
129
123
-
### Building Copybara in an external Bazel workspace
130
+
### Using pre-built Copybara in Bazel
131
+
132
+
If using a weekly snapshot release, install Copybara as follows:
133
+
134
+
1. Copybara ships with class files with version 65.0, so it must be run with Java Runtime 21 or greater. Add to your `.bazelrc` file: `run --java_runtime_version=remotejdk_21`
135
+
2. Use `http_jar` to download the release artifact.
136
+
- In WORKSPACE: `load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar")`
137
+
- In MODULE.bazel: `http_jar = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar")`
138
+
3. In WORKSPACE or MODULE.bazel, fill in the `[version]` placeholder:
139
+
```starlark
140
+
http_jar(
141
+
name="com_github_google_copybara",
142
+
# Fill in from https://github.com/google/copybara/releases/download/[version]/copybara_deploy.jar.sha256
0 commit comments