#Using owner parameter with WithMounted{...}

1 messages · Page 1 of 1 (latest)

night jasper
#

Hi all,

I have a case where I need to specify the owner of a secret that I am mounting. So, this PR is exactly what I need: https://github.com/dagger/dagger/pull/4932

For using it, I first installed the Python SDK from main branch, and can verify that the parameter is there. Then I pulled the engine from main branch as explained here: https://github.com/dagger/dagger/pkgs/container/engine I've run that engine, and exported EXPERIMENTAL_DAGGER_RUNNER_HOST variable with that engine. However, when I try to use owner parameter I receive this error:

File "/home/x1tacali/.pyenv/versions/3.11.2/lib/python3.11/site-packages/gql/dsl.py", line 873, in _get_argument raise KeyError(f"Argument {name} does not exist in {self.field}.") KeyError: 'Argument owner does not exist in Field: Container!.'

The whole error message is in the text file I attached.

GitHub

fixes #4739
Adds owner: String to the following APIs:
type Container {
withMountedDirectory(..., owner: String): Container!
withMountedFile(..., owner: String): Container!
withDirectory(..., ...

GitHub

GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 330 million projects.

dense fox
#

The most important is _EXPERIMENTAL_DAGGER_CLI_BIN=. You need to build the dagger CLI.