Closed as not planned
Description
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"