Skip to content

commit: support granularity #4297

Closed as not planned
Closed as not planned
@pared

Description

@pared

Update: see #4297 (comment)

version : 1.2.2

commiting output instead of stage, when there is no dvc.yaml results in:

ERROR: failed to commit data - 'dvc.yaml' does not exist.

in 0.94.0 it used to be:
ERROR: failed to commit data - bad DVC-file name 'data'. DVC-files should be named 'Dvcfile' or have a '.dvc' suffix (e.g. 'data.dvc').

Reproduction script:

#!/bin/bash

rm -rf repo
mkdir repo

pushd repo
git init --quiet
dvc init --quiet

echo data >> data
dvc add data

git add -A
git commit -am "init"

dvc commit data

NOTE:
When dvc.yaml is present, error is more readable:
failed to commit data - "Stage 'data' not found inside 'dvc.yaml' file"

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequesting a new featurep2-mediumMedium priority, should be done, but less important

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions