Skip to content
This repository was archived by the owner on Apr 18, 2019. It is now read-only.
This repository was archived by the owner on Apr 18, 2019. It is now read-only.

pyz_binary is missing the PyZProvider #53

@cmoore3

Description

@cmoore3

In order to write unit tests for pyz_binary content, my team wants to be able to add pyz_test rules that have deps on pyz_binary targets.

Unfortunately, that triggers an error because pyz_binary rules do not have the mandatory provider PyZProvider. That is also different behavior than the native rules where py_binary rules do have the py provider.

Simply updating this line to return [provider, DefaultInfo( seems to make it work as desired:
https://github.com/TriggerMail/rules_pyz/blob/master/rules_python_zip/rules_python_zip.bzl#L243

My question is, why is the provider omitted from pyz_binary rules? Can it be added?

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