#Checksum failed when directory diff

1 messages · Page 1 of 1 (latest)

raven bluff
#

When running this function:

    @function
    def lib_deps(self) -> dagger.Directory:
        base_dir = dag.container().from_("debian:bookworm-slim").directory("/usr/lib")      
        libs = (dag.container()
            .from_("debian:bookworm-slim")
            .with_exec(["apt", "update"])      
            .with_exec(["apt-get", "install", "-y", "zlib1g"])
            .directory("/usr/lib")
        )

        return libs.diff(base_dir)

I face

failed to convert result: failed to compute cache key: failed to calculate checksum of ref
! l2npbiqmrysepmvmgudboccir::0qzdechnlxyi46fzxavzq3ecs: "/usr/lib": not found

However if I return one or the other directory (libsor base_dir) it works. I'm a bit confused on why the diff fails?

hasty cargo
raven bluff
hasty cargo