Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stage add: don't fail if unable to create .gitignore #8644

Merged
merged 1 commit into from
Dec 1, 2022
Merged

Conversation

dberenbaum
Copy link
Collaborator

Related to iterative/example-repos-dev#153.

Fixes #5802

Not sure where to add a test for this

@dberenbaum dberenbaum requested a review from skshetry November 30, 2022 14:23
@codecov
Copy link

codecov bot commented Nov 30, 2022

Codecov Report

Base: 94.12% // Head: 94.12% // No change to project coverage 👍

Coverage data is based on head (d57bb23) compared to base (d57bb23).
Patch has no changes to coverable lines.

❗ Current head d57bb23 differs from pull request most recent head 799b97f. Consider uploading reports for the commit 799b97f to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8644   +/-   ##
=======================================
  Coverage   94.12%   94.12%           
=======================================
  Files         435      435           
  Lines       33459    33459           
  Branches     4711     4711           
=======================================
  Hits        31494    31494           
  Misses       1536     1536           
  Partials      429      429           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines +146 to +150
ui.warn(
f"Could not create .gitignore entry in {exc.filename}."
" DVC will attempt to create .gitignore entry again when"
" the stage is run."
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if we need a warning here.

@daavoo daavoo enabled auto-merge (rebase) December 1, 2022 15:06
@daavoo daavoo added the bugfix fixes bug label Dec 1, 2022
@daavoo daavoo merged commit b7732a5 into main Dec 1, 2022
@daavoo daavoo deleted the stage-add-ignore branch December 1, 2022 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix fixes bug
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

stage add: fails with dirs that will be created later by the cmd(s)
5 participants