The load from @local_config_platform//:constraints.bzl made the repo rule and thus the extension platform-dependent. Instead of marking it so and thus making lockfile maintenance more difficult, get rid of the load-time platform dependence by using rctx.os directly.
The load from
@local_config_platform//:constraints.bzl
made the repo rule and thus the extension platform-dependent. Instead of marking it so and thus making lockfile maintenance more difficult, get rid of the load-time platform dependence by usingrctx.os
directly.Also mark the repository rule as
configure
in preparation of https://github.com/bazelbuild/bazel/commit/1b0a2a12ff3388a850069763d7c38155b111edbf.