Skip to content

[Bug]: 0.19 clients incompatible with new servers #3370

@r4victor

Description

@r4victor

Steps to reproduce

  1. Apply a run configuration from CLI 0.19.40 to master server
  2. Get an error:
✗  dstack apply
The working_dir is not set — using legacy default "/workflow". Future versions 
will default to the image's working directory.

repos[0].path is not set, using legacy repo path /workflow

In a future version the default value will be changed. To keep using /workflow,
explicitly set repos[0].path to /workflow

Server validation error: 
{'detail': [{'loc': ['body', 'run_spec', 'working_dir'],
             'msg': 'extra fields not permitted',
             'type': 'value_error.extra'}]}

Seems to be caused by removing run_spec.working_dir in #3348 which old CLIs continue to submit.

Actual behaviour

No response

Expected behaviour

No response

dstack version

master

Server logs

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions