Skip to content
New issue

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

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

Already on GitHub? # to your account

Compiling Copybara through Bazel #267

Open
8W9aG opened this issue Nov 4, 2023 · 1 comment
Open

Compiling Copybara through Bazel #267

8W9aG opened this issue Nov 4, 2023 · 1 comment

Comments

@8W9aG
Copy link

8W9aG commented Nov 4, 2023

I am currently trying to compile Copybara using the workspace additions recommended in the README.md with the following command:

bazel build @com_github_google_copybara//java/com/google/copybara

I am seeing the following issue:

external/io_bazel/src/main/java/net/starlark/java/eval/Dict.java:462: error: cannot find symbol
        var dict = (Dict<K, V>) m;
        ^
  symbol:   class var
  location: class Dict<K,V>
  where K,V are type-variables:
    K extends Object declared in class Dict
    V extends Object declared in class Dict

Is there a specific toolchain that copybara developers recommend when building this in bazel?

@mikelalcon
Copy link
Collaborator

You need Java 11. See https://github.com/google/copybara/blob/master/cloudbuild.yaml#L13 as an example on how to invoke.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants