Skip to content

Please constrain the pkg_msi rule to Windows #2

@saurabhaditya

Description

@saurabhaditya

What do you think of this rule to have a constraint to only be built on the platforms it can actually be built in? I believe wix toolset only works on Windows, at least until wixtoolset/issues#4381

pkg_msi = rule(

If I use this rule as is, my build will always fail on a non-Windows build agent.
If you agree we need to do this, then we can figure out how to do this, from the documentation:
https://docs.bazel.build/versions/master/be/platform.html

I guess in the meanwhile a workaround can be to use a build target constraint with target_compatible_with as in the Bazel documentation https://docs.bazel.build/versions/master/platforms.html#skipping-incompatible-targets

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