Hi, i am currently trying Dagger with typescript in my company, I have an example repo to test Dagger with an initial setup of dagger with typescript SDK.
Currently yarn on local work, I don't have Docker on local, and with Dagger on a remote Dagger Engine I always have this error when I just run dagger call containerEcho:
PS C:\Users\MyUser\my-example-repo> dagger call containerEcho
[...]
Stdout:
invoke: failed to create codegen base: could not list rootfs entries: input: container.from.withoutEntrypoint.withExec.withEnvVariable.withMountedCache.withExec.withWorkdir.withDirectory.withExec.withExec.withExec.directory resolve: process "yarn set version stable" did not complete successfully: exit code: 1
Stdout:
Request Error: getaddrinfo ENOTFOUND repo.yarnpkg.com
[...]
info Visit https://yarnpkg.com/en/docs/cli/policies for documentation about this command.
Stderr:
! Corepack is about to download https://registry.yarnpkg.com/yarn/-/yarn-1.22.22.tgz
! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e.
! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager
! Corepack is about to download https://repo.yarnpkg.com/4.3.1/packages/yarnpkg-cli/bin/yarn.js
error Command failed.
Exit code: 1
Command: /usr/local/bin/node
Arguments: /usr/local/lib/node_modules/corepack/dist/corepack.js yarn@stable set version stable
Directory: /src
Output:
I tried to enforce the package manager with this on ./dagger/package.json:
"packageManager": "^pnpm@9.6.0"
I doesnt change anything.
And a working .npmrc and .yarnrc.yml on local doesnt fix anything if I copy them at the root project dir or in the dagger directory.