bazel-contrib / bazel-contrib/rules_jvm

bazel mod graph issue

Open
#324 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
54
Forks
98
Avg merge
6d 2h
Merged PRs (30d)
7

Description

### 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](https://plugins.jetbrains.com/plugin/22977-bazel-eap-) 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
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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `bazel mod graph` for rules version 0.28.0 using the command and error log in the issue. Read the reported `rules_apple` and `abseil-cpp` module-extension failures first; the issue is resolved when the module graph completes without these errors.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.