Hey team π
I'm trying to migrate one of our pipelines (running on an older version of dagger) to use modules, but I'm facing an error that I cannot explain. Can anyone advise what could be the reason for it? Appreciate it.
In the legacy version, I'm doing something like this and it works
let gitTag = await client .container() .from("quay.io/pantheon-public/autotag:latest") .withMountedDirectory("/app", contextDir) .withExec(["-n", "-s", "conventional", "-r", "/app"]) .stdout()
In the version 0.13, I'm using the following module function, but this fails with the following error:
Stderr:
Error: resolve: process "-n -s conventional -r /app" did not complete successfully: exit code: 1
`@func()
async getNextTag(src: Directory): Promise<string> {
const tag = await dag
.container()
.from("quay.io/pantheon-public/autotag:v1.3.30")
.withMountedDirectory("/app", src)
.withExec(["-n", "-s", "conventional", "-r", "/app"])
.stdout();
return `${tag}`;
}`