facebook / facebook/buck2

Type inconsistency when loading .bzl from different cells

Open
#890 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
4.4k
Forks
394
PR merge metrics
No merged PRs in 30d

Description

I've created a repo (https://github.com/yxdai-nju/buck2-cross-cell-bzl-load-issue) demonstrating the problem. Loading the same .bzl from different cells seems to result in incompatible type definitions, despite having identical type names.

Contributor guide

Open the contributing guide

Research direction

Start with the linked reproduction repository and trace the .bzl loads across the different cells, comparing the resulting type definitions. Reproduce the behavior, then identify what should make identical type names compatible across cells; done means the reproduction no longer reports incompatible types.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.