https://pantsbuild.org/ logo
#general
Title
# general
p

proud-appointment-36730

07/11/2022, 8:39 PM
For example, I want to do something like this:
Copy code
def myorg_docker_image(**kwargs):
   # If someone specifies a source and does not embed instructions into BUILD file, fail fast
   if kwargs['source'] or not kwargs['instructions']:
       raise ValueError("Cannot use Dockerfiles")
    if not are_dependencies_encoded_in_instructions(kwargs['instructions']):
        raise ValueError("Must encode dependencies of docker image into instructions kwarg")
    docker_image(**kwargs)
5 Views