Skip to content

Publish fails when previous_version is set to 'latest' #519

@hesamsagha

Description

@hesamsagha

Description

Running

audb.publish(
    DB_ROOT,
    version=VERSION,
    repository=repository,
    num_workers=n_workers,
    verbose=True,
    previous_version='latest'
)

produces error:

Traceback (most recent call last):
  File "/builds/project/aisoundlab/data/aisoundlabtools/publish_runner.py", line 32, in <module>
    audb.publish(
  File "/usr/local/lib/python3.10/site-packages/audb/core/publish.py", line 790, in publish
    raise RuntimeError(
RuntimeError: You did not set a dependency to a previous version, but you have a 'db.parquet' file present in /builds/project/aisoundlab/data/aisoundlabtools/study_exports/heartmetrix/merged.out.

There is already a previous version on artifactory.

Affected versions

  • 1.11.4 (with 1.11.3 the code works fine)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions