Hey @restive mango! I have a few questions:
- Which dagger version are you using?
- What are the changes that you made to
dagger.json?
- What path is the module in relation to the repo root?
- You show the
upload span, but without the exclude and include that usually are a part of that span. Can you share it? Do you notice anything out of place in those patterns?
Here's one tip to help debug further š
Create a function that uses your language's stdlib to list files in /src (or run command find /src). When a module is loaded, files are uploaded from the entire repo that match the patterns, and mounted under /src. So you can get confirmation on what actually was uploaded or not.
Here's an example in Python:
@function
async def tree(
self,
path: Annotated[str, Doc("The directory path in the runtime container")] = "/src",
pattern: Annotated[str, Doc("Glob pattern for matching files")] = "**/*",
) -> list[str]:
"""List the files in a directory."""
return [str(p) async for p in anyio.Path(path).glob(pattern)]