Skip to content

deps is inconsistent between dvc.yaml and .dvc files #5370

Closed
@antonkulaga

Description

@antonkulaga

When I have something like:

    deps:
      - path: http://ftp.ensembl.org/pub/release-102/fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz
        etag: W/"5f8d62ed-34863818"
        cache: false

It works find in .dvc files, but when I add it to one of the stages, I get an error as it assumes deps are string only.

stages:
  prepare_genome:
    frozen: true
    deps:
      - path: http://ftp.ensembl.org/pub/release-102/fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz
        etag: W/"5f8d62ed-34863818"
        cache: false
    cmd: bin/prepare_genome.sh
    out:
      - data/gwas/homo_sapiens_ensembl_102/Homo_sapiens.GRCh38.dna.primary_assembly.fa

the error is:

 'dvc.yaml' format error: expected str @ data['stages']['prepare_genome']['deps'][0]

the dvc version is 1.11.10 (latest .deb file).
I suggest that "deps" should behave the same in .dvc and dvc.yaml as otherwise it creates a lot of confusion.

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