Skip to content

Conversation

@efiop
Copy link
Contributor

@efiop efiop commented Nov 9, 2021

Continuation of #6918

Intermediate change to rip path_info out of code base. We've
tried to gradually remove path_info in smaller PRs, but unfortunately,
it is stuck so deep everywhere, that it is was not possible. So here
we are trying to rip it all out at once, which will clearly need some
grace period to smooth up the rough edges.

It is completely removed from the main codebase and is still
being used in tests, which will be migrated in the follow-ups.

For fs-specific simple path manipulation, we've introduced
fs.path helper (similar to os.path).

Fixes #6774

@efiop efiop added the refactoring Factoring and re-factoring label Nov 9, 2021
@efiop efiop requested a review from a team as a code owner November 9, 2021 19:54
@efiop efiop requested a review from karajan1001 November 9, 2021 19:54
@efiop efiop force-pushed the path-info-xxx branch 3 times, most recently from ea9384e to 284e271 Compare November 9, 2021 21:55
efiop added a commit to treeverse/dvc-bench that referenced this pull request Nov 9, 2021
dvc.path_info is getting removed in treeverse/dvc#6946

Our fixtures should not depend on dvc at all, which will be fixed in the future.
Intermediate PR in removing path_info from our code base.

It is completely removed from the main codebase and is still
being used in tests, which will be migrated in the followups.

For fs-specific simple path manipulation, we've introduced
`fs.path` helper (similar to `os.path`).

Fixes #6774
@efiop efiop changed the title [WIP] get rid of path_info dvc: get rid of path_info Nov 9, 2021
@efiop efiop merged commit 9aec8f1 into master Nov 9, 2021
@efiop efiop deleted the path-info-xxx branch November 9, 2021 22:52
@efiop efiop mentioned this pull request Nov 10, 2021
efiop added a commit to efiop/dvc that referenced this pull request Nov 10, 2021
fs.path is meant to be lightweight, and we should try to avoid using os.path.

Leftover from treeverse#6946
efiop added a commit that referenced this pull request Nov 10, 2021
fs.path is meant to be lightweight, and we should try to avoid using os.path.

Leftover from #6946
daavoo added a commit that referenced this pull request Apr 11, 2022
efiop pushed a commit that referenced this pull request Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Factoring and re-factoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fs: migrate away from PathInfo

2 participants