With the new string_flag type, it would be nice if we could include some of these in rules repos, but currently it doesn't seem like you can reference them if they're in a WORKSPACE repo in your project. For example if we add this:
string_flag(
name = "ios_simulator_id",
build_setting_default = "",
visibility = ["//visibility:public"],
)
To rules_apple, and then try to set it with:
bazel test //... --@build_bazel_rules_apple//apple:ios_simulator_id=foo
We get this error:
ERROR: Unrecognized option: --@build_bazel_rules_apple//apple:ios_simulator_id=foo
I also tried using //external here with no luck.
What's the output of bazel info release?
release 1.1.0
Related: bazelbuild/rules_apple#648
With the new
string_flagtype, it would be nice if we could include some of these in rules repos, but currently it doesn't seem like you can reference them if they're in a WORKSPACE repo in your project. For example if we add this:To rules_apple, and then try to set it with:
We get this error:
I also tried using
//externalhere with no luck.What's the output of
bazel info release?release 1.1.0
Related: bazelbuild/rules_apple#648