#Not able to return list(dagger.Container)

1 messages · Page 1 of 1 (latest)

wet briar
#

I'm working on a function to build Java containers for multiple platforms. Here's my current function signature:

    @function
    async def create_java_app_containers(
        self, jar_file: dagger.File, java_version: str = "17"
    ) -> list[dagger.Container]:

When I try to run it, I get this error:

Error: response from query: json: cannot unmarshal array into Go value of type string
Run 'dagger call create-java-app-containers --help' for usage.

Why doesn't the Python SDK support this?

My goal is to call create_java_app_containers from another module where I can scan them with tools like Trivy and publish them when they have no critical CVE's.