allegroai/clearml-agent

poetry_install_extra_args passes arguments to poetry config

jmw52 opened this issue · 1 comments

jmw52 commented
  • Using kubernetes integration with clearml-k8s glue to create agents.
  • When setting agent config with poetry_install_extra_args
agent {
      package_manager: {
        type: poetry
        poetry_install_extra_args: ["--without", "dev"]
      }
    }

the following error occurs:

The option "--without" does not exist
Exception: Command '['poetry', 'config', '--local', 'virtualenvs.in-project', 'true', '--without', 'dev']' returned non-zero exit status 1.
Error: Failed configuring Poetry virtualenvs.in-project
failed installing poetry requirements: Command '['poetry', 'config', '--local', 'virtualenvs.in-project', 'true', '--without', 'dev']' returned non-zero exit status 1.

It looks like the arguments are passed to command poetry config, which does not accept these arguments.

ainoam commented

Thanks for reporting @jmw52,

We'll let you know when a fix is available.