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

[1.5.0-beta-4] Failed to load Starlark extension '@io_bazel_rules_kotlin_configured//kotlin:opts.bzl' #597

Closed
geaden opened this issue Oct 10, 2021 · 1 comment

Comments

@geaden
Copy link

geaden commented Oct 10, 2021

After upgrading to 1.5.0-beta-4 I'm getting:

ERROR: Failed to load Starlark extension '@io_bazel_rules_kotlin_configured//kotlin:opts.bzl'.
Cycle in the workspace file detected. This indicates that a repository is used prior to being defined.
The following chain of repository dependencies lead to the missing definition.
 - @io_bazel_rules_kotlin_configured
This could either mean you have to add the '@io_bazel_rules_kotlin_configured' repository with a statement like `http_archive` in your WORKSPACE file (note that transitive dependencies are not added automatically), or move an existing definition earlier in your WORKSPACE file.
ERROR: cycles detected during target parsing

My workspace is similar to jetpack compose example, but using latest stable compose version. I tried with custom and default toolchains, result is the same.

@geaden
Copy link
Author

geaden commented Oct 11, 2021

It turned out I had load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains") in my WORKSPACE before calling kotlin_repositories. Since I use custom kotlin release, I removed the line and now error gone. I'm closing the issue.

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

1 participant