Skip to content

Instantly share code, notes, and snippets.

@rajatjindal
Last active October 11, 2024 11:23
Show Gist options
  • Select an option

  • Save rajatjindal/7b737644053726d2e2eb1eea302e5bda to your computer and use it in GitHub Desktop.

Select an option

Save rajatjindal/7b737644053726d2e2eb1eea302e5bda to your computer and use it in GitHub Desktop.
repro.logs
../../../dagger/dagger/hack/with-dev dagger call use-cache-volume-name --name volume-name
✔ connect 0.2s
✔ initialize 12.3s
✔ prepare 0.0s
✔ bar: Bar! 0.0s
✘ Bar.useCacheVolumeName(name: "volume-name"): String! 3.2s
! call function "UseCacheVolumeName": process "/runtime" did not complete successfully: exit code: 2
┃ invoke: input: container.from.withMountedCache.withExec.stdout resolve: process "sh -c ls /bar/bar.txt" did not complet
┃ successfully: exit code: 1
┃ Stderr:
┃ ls: /bar/bar.txt: No such file or directory
✔ Container.from(address: "alpine:latest"): Container! 3.0s
✘ Container.stdout: String! 0.1s
! process "sh -c ls /bar/bar.txt" did not complete successfully: exit code: 1
Full trace at https://dagger.cloud/rajatjindal/traces/635390e7a5702f011bea84976faaefdf
Error: response from query: input: bar.useCacheVolumeName resolve: call function "UseCacheVolumeName": process "/runtime" did not complete successfully: exit code: 2
Stdout:
invoke: input: container.from.withMountedCache.withExec.stdout resolve: process "sh -c ls /bar/bar.txt" did not complete successfully: exit code: 1
Stderr:
ls: /bar/bar.txt: No such file or directory
A new release of dagger is available: v0.13.4-241011164135-78d2dad94d80 → v0.13.5
To upgrade, see https://docs.dagger.io/install
https://github.com/dagger/dagger/releases/tag/v0.13.5
~/go/src/github.com/rajatjindal/dagger-cache-volume-issue/bar (cloud-docker/ap-south-1) git:(main)
$ cd ..
~/go/src/github.com/rajatjindal/dagger-cache-volume-issue (cloud-docker/ap-south-1) git:(main)
$ ../../dagger/dagger/hack/with-dev dagger call get-cache-volume-id
✔ connect 0.1s
✔ initialize 3.2s
✔ prepare 0.0s
✔ foo: Foo! 0.0s
✔ Foo.getCacheVolumeId: String! 1.2s
Full trace at https://dagger.cloud/rajatjindal/traces/85b21ea2f7ac4d94557037141097e7ae
ChV4eGgzOjc0ZWRlM2JlMmFhOTBlM2EScwoVeHhoMzo3NGVkZTNiZTJhYTkwZTNhEloSDwoLQ2FjaGVWb2x1bWUYARoFY2FjaGUiKQoDa2V5EiI6IHh4aDM6ZWVmYTVlNDdkNmRlZjQ4MXZvbHVtZS1uYW1lShV4eGgzOjc0ZWRlM2JlMmFhOTBlM2E=
A new release of dagger is available: v0.13.4-241011164135-78d2dad94d80 → v0.13.5
To upgrade, see https://docs.dagger.io/install
https://github.com/dagger/dagger/releases/tag/v0.13.5
~/go/src/github.com/rajatjindal/dagger-cache-volume-issue (cloud-docker/ap-south-1) git:(main)
$
~/go/src/github.com/rajatjindal/dagger-cache-volume-issue/bar (cloud-docker/ap-south-1) git:(main)
$ ../../../dagger/dagger/hack/with-dev dagger call use-cache-volume-name --name volume-name
✔ connect 0.1s
✔ initialize 0.3s
✔ prepare 0.0s
✔ bar: Bar! 0.0s
✘ Bar.useCacheVolumeName(name: "volume-name"): String! 1.0s
! call function "UseCacheVolumeName": process "/runtime" did not complete successfully: exit code: 2
┃ invoke: input: container.from.withMountedCache.withExec.stdout resolve: process "sh -c ls /bar/bar.txt" did not complet
┃ successfully: exit code: 1
┃ Stderr:
┃ ls: /bar/bar.txt: No such file or directory
✔ Container.from(address: "alpine:latest"): Container! 0.9s
✘ Container.stdout: String! 0.1s
! process "sh -c ls /bar/bar.txt" did not complete successfully: exit code: 1
Full trace at https://dagger.cloud/rajatjindal/traces/29cf54521e3802cf0f1640ba68cfec99
Error: response from query: input: bar.useCacheVolumeName resolve: call function "UseCacheVolumeName": process "/runtime" did not complete successfully: exit code: 2
Stdout:
invoke: input: container.from.withMountedCache.withExec.stdout resolve: process "sh -c ls /bar/bar.txt" did not complete successfully: exit code: 1
Stderr:
ls: /bar/bar.txt: No such file or directory
A new release of dagger is available: v0.13.4-241011164135-78d2dad94d80 → v0.13.5
To upgrade, see https://docs.dagger.io/install
https://github.com/dagger/dagger/releases/tag/v0.13.5
~/go/src/github.com/rajatjindal/dagger-cache-volume-issue/bar (cloud-docker/ap-south-1) git:(main)
$ cd ..
~/go/src/github.com/rajatjindal/dagger-cache-volume-issue (cloud-docker/ap-south-1) git:(main)
$
~/go/src/github.com/rajatjindal/dagger-cache-volume-issue (cloud-docker/ap-south-1) git:(main)
$ ../../dagger/dagger/hack/with-dev dagger call use-cache-volume-across-module-using-id --id ChV4eGgzOjc0ZWRlM2JlMmFhOTBlM2EScwoVeHhoMzo3NGVkZTNiZTJhYTkwZTNhEloSDwoLQ2FjaGVWb2x1bWUYARoFY2FjaGUiKQoDa2V5EiI6IHh4aDM6ZWVmYTVlNDdkNmRlZjQ4MXZvbHVtZS1uYW1lShV4eGgzOjc0ZWRlM2JlMmFhOTBlM2E=
✔ connect 0.2s
✔ initialize 0.5s
✔ prepare 0.0s
✔ foo: Foo! 0.0s
✔ Foo.useCacheVolumeAcrossModuleUsingId(id: ETOOBIG:sha256:9abbfeff3ad7865f828d127bc47f1454319dee7ae184aab44b3cb748274681fe): String! 1.3s
Full trace at https://dagger.cloud/rajatjindal/traces/c0e82ae32984e9f41681f936772a5cbd
/bar/bar.txt
A new release of dagger is available: v0.13.4-241011164135-78d2dad94d80 → v0.13.5
To upgrade, see https://docs.dagger.io/install
https://github.com/dagger/dagger/releases/tag/v0.13.5
~/go/src/github.com/rajatjindal/dagger-cache-volume-issue (cloud-docker/ap-south-1) git:(main)
$ cd bar
~/go/src/github.com/rajatjindal/dagger-cache-volume-issue/bar (cloud-docker/ap-south-1) git:(main)
$ ../../../dagger/dagger/hack/with-dev dagger call use-cache-volume-name --name volume-name
✔ connect 0.1s
✔ initialize 0.4s
✔ prepare 0.0s
✔ bar: Bar! 0.0s
✔ Bar.useCacheVolumeName(name: "volume-name"): String! 1.0s
Full trace at https://dagger.cloud/rajatjindal/traces/a74aa2de778f65e3cebfb18b949b39a7
/bar/bar.txt
A new release of dagger is available: v0.13.4-241011164135-78d2dad94d80 → v0.13.5
To upgrade, see https://docs.dagger.io/install
https://github.com/dagger/dagger/releases/tag/v0.13.5
~/go/src/github.com/rajatjindal/dagger-cache-volume-issue/bar (cloud-docker/ap-south-1) git:(main)
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment