Skip to content

Increase min tested Bazel version to 4.0.0 #526

Closed

Description

@UebelAndre

🚀 feature request

Relevant Rules

Description

A clear and concise description of the problem or missing capability...

Writing tests and new features for these rules is difficult since there are a few new features (for me, the env attribute and json module) that are incredibly useful pretty un-fun to work around, making changes take more time than the need to. The min tested version should be bumped to 4.0.0 to enable the use of these features.

Describe the solution you'd like

If you have a solution in mind, please describe it.

Update the bazel versions in .bazelrc and version.bzl to 4.0.0

Describe alternatives you've considered

Have you considered any alternative solutions or workarounds?

Alternatively, it'd be nice to have a well documented way to conditionally use things in newer versions of Bazel. Perhaps native.bazel_version could be made available to rules and macros (not just repository rules) (bazelbuild/bazel#8305) but that would likely also require some way to compare versions which I'm only aware of @bazel_skylib//lib:versions.bzl.

Activity

  1. alexeagle commented on Sep 12, 2021

    @alexeagle
    Contributor

    Agreed - it's a breaking change for users, but we made the same in rules_nodejs to reduce support burden. LTS and rolling releases are the only ones I think we need to support.

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