Skip to content

Static name binding makes migrations difficult #7428

@dbabkin

Description

@dbabkin

Please make Starlark resolve global accessible variable on runtime instead of on script loading phase.
This code fails if proto_common is not accessible as global variable. :

if False:
  proto_common.some_field

But in fact this line is ignored always during execution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4This is either out of scope or we don't have bandwidth to review a PR. (No assignee)staleIssues or PRs that are stale (no activity for 30 days)team-Starlark-InterpreterIssues involving the Starlark interpreter used by Bazeltype: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions