Skip to content

native_binary attribute env does not expand locations #622

Description

@NEOatNHNG

In the env attribute of cc_binary or sh_binary locations get expanded. This does not happen for native_binary which is unexpected.

Usage example:

native_binary(
    name = "my_example",
    src = "//src/example",
    data = [
        ":my_shared_lib",
    ],
    env = {
        "LD_DEBUG": "libs",
        "LD_LIBRARY_PATH": "$(rootpath :my_shared_lib)",
    },
)

Also it would be great to have the possibility to extend a path variable instead of overwriting it (env_inherit?).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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