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
Apply the following patch to rules_kotlin in order to make the production deps be loaded before the dev ones. This should be a safe operation since the production deps contain everything that rules_kotlin needs at runtime:
The way that I've "solved" this before is manually "unwind" the dependencies of my ruleset's transitive deps in the dependencies.bzl file so that setup.bzl can call the various setup functions that those rulesets provide. It's most unsatisfactory.
Apply the following patch to
rules_kotlin
in order to make the production deps be loaded before the dev ones. This should be a safe operation since the production deps contain everything thatrules_kotlin
needs at runtime:Now run
bazel sync --noenable_bzlmod
and the following error is reported:ERROR: ErrorInfo{exception=null, cycles=[[] -> [[/Volumes/Dev/src/github.com/bazelbuild/rules_kotlin]/[WORKSPACE], 2, KeyForWorkspace{label=//kotlin:repositories.bzl, isBuildPrelude=false}, KeyForWorkspace{label=//src/main/starlark/core/repositories:initialize.bzl, isBuildPrelude=false}, KeyForWorkspace{label=//src/main/starlark/core/repositories:setup.bzl, isBuildPrelude=false}, KeyForWorkspace{label=@@rules_proto//proto:repositories.bzl, isBuildPrelude=false}, CONTAINING_PACKAGE_LOOKUP:@@rules_proto//proto, PACKAGE_LOOKUP:@@rules_proto//proto, REPOSITORY_DIRECTORY:@@rules_proto]], isCatastrophic=false, isDirectlyTransient=false, isTransitivelyTransient=false}
From this, it's clear that there is a chain of
load
statements fromrepositories.bzl
tosetup.bzl
(and from there to@rules_proto
).The text was updated successfully, but these errors were encountered: