#Error: resolve: process " ... " did not complete successfully: exit code: 1

1 messages Β· Page 1 of 1 (latest)

analog stag
#

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}`;

}`

fluid void
analog stag
#

Thanks @fluid void , that did the trick for that case.

I now have another beginner issue that i'm facing: What would be the recommended way to run a .sh script inside a dagger container

I'm trying this way, but it fails with the same resolve: process error

await dag
.container()
.from("alpine")
.withDirectory("/app", src)
.withEntrypoint(["/bin/bash"])
.withExec(["/app/dagger/src/scripts/render-manifests.sh"])
.stdout();