Skip to content

Support special value for USE_BAZEL_VERSION to mean "ignore the environment variable" #806

Description

@phst

Sometimes it would be nice to set USE_BAZEL_VERSION to some special value (e.g. default) to mean the same as unset. For example, in https://github.com/phst/rules_elisp/blob/1ea988db24653552f97c02e6c2681b2a846ea952/.github/workflows/bazel-test.yaml#L32-L35 I use the GitHub workflow "matrix" support to test my code with different Bazel versions, with default meaning "take the version from .bazelversion". I have to manually encode that logic in https://github.com/phst/rules_elisp/blob/1ea988db24653552f97c02e6c2681b2a846ea952/.github/actions/set-up/action.yaml#L135-L142, it would be a bit easier if I could just say USE_BAZEL_VERSION=default.

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