Skip to content

bazel mod graph issue #324

@ponchikis

Description

@ponchikis

How to reproduce?

Hi, the current rules version uses some modules that don't work well with the bazel mod command, producing errors. The new IDEA plugin uses bazel mod calls to list the current tree of modules.

Error log

Invoking: '..../bazel' 'mod' 'graph' '--tool_tag=bazelbsp:3.2.0' '--output=json' '--inject_repository=bazelbsp_aspect=/Users/user.name/projects/COMPONENTS/component/.bazelbsp' '--curses=no' '--color=yes' '--noprogress_in_terminal_title'
Bazel query failed with output:
ERROR: Traceback (most recent call last):
	File "/private/var/tmp/_bazel_user.name/0e7d0879623aec1986e0454dee2ef23a/external/rules_apple+/apple/internal/apple_xcframework_import.bzl", line 775, column 21, in <toplevel>
		apple_common.AppleDynamicFramework,
Error: 'struct' value has no field or method 'AppleDynamicFramework'
Available attributes: Objc, XcodeProperties, XcodeVersionConfig, apple_host_system_env, apple_platform, apple_toolchain, compilation_support, dotted_version, get_apple_config, get_cpu, get_split_build_configs, get_split_prerequisites, new_objc_provider, platform, platform_type, target_apple_env
ERROR: @@bazel_tools//tools/cpp:cc_configure.bzl does not export a module extension called cc_configure_extension, yet its use is requested at https://bcr.bazel.build/modules/abseil-cpp/20240722.0/MODULE.bazel:23:29
ERROR: Error loading '@@rules_apple+//apple:apple.bzl' for module extensions, requested by https://bcr.bazel.build/modules/rules_apple/3.5.1/MODULE.bazel:27:48: at /private/var/tmp/_bazel_user.name/0e7d0879623aec1986e0454dee2ef23a/external/rules_apple+/apple/apple.bzl:27:5: initialization of module 'apple/internal/apple_xcframework_import.bzl' failed: at /private/var/tmp/_bazel_user.name/0e7d0879623aec1986e0454dee2ef23a/external/rules_apple+/apple/apple.bzl:27:5: initialization of module 'apple/internal/apple_xcframework_import.bzl' failed
ERROR: Results may be incomplete as 2 extensions failed.

Rules version

0.28.0

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