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

config: resolve: handle ~ home dir #9825

Merged
merged 1 commit into from
Aug 10, 2023
Merged

config: resolve: handle ~ home dir #9825

merged 1 commit into from
Aug 10, 2023

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Aug 9, 2023

Fixes #9822

Comment on lines +269 to +276
conf_dir = os.path.abspath(os.path.dirname(filename))
resolve = partial(cls._resolve, conf_dir)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adjusted it to look like _save_paths below, and have the same structure here and in tests.

@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Patch coverage: 84.21% and project coverage change: -0.02% ⚠️

Comparison is base (c71b07b) 90.42% compared to head (69b002d) 90.40%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9825      +/-   ##
==========================================
- Coverage   90.42%   90.40%   -0.02%     
==========================================
  Files         484      484              
  Lines       36887    36913      +26     
  Branches     5326     5332       +6     
==========================================
+ Hits        33354    33371      +17     
- Misses       2924     2930       +6     
- Partials      609      612       +3     
Files Changed Coverage Δ
dvc/config.py 94.71% <71.42%> (-1.59%) ⬇️
dvc/config_schema.py 93.54% <100.00%> (+0.82%) ⬆️
tests/func/test_config.py 100.00% <100.00%> (ø)
tests/unit/test_config.py 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@efiop efiop added the bugfix fixes bug label Aug 9, 2023
@efiop efiop force-pushed the fix-9822 branch 2 times, most recently from f47eec3 to b73dced Compare August 9, 2023 22:21
@efiop efiop changed the title config: resolve: handle ~ home dir [WIP] config: resolve: handle ~ home dir Aug 9, 2023
@efiop efiop force-pushed the fix-9822 branch 4 times, most recently from 5f7d2db to 07f3f83 Compare August 9, 2023 23:49
@efiop efiop changed the title [WIP] config: resolve: handle ~ home dir config: resolve: handle ~ home dir Aug 10, 2023
@efiop efiop merged commit 4f61a63 into iterative:main Aug 10, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix fixes bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Path with ~ in config breaks repo parsing
1 participant