Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

integrate cached_path #5418

Merged
merged 6 commits into from
Oct 22, 2021
Merged

integrate cached_path #5418

merged 6 commits into from
Oct 22, 2021

Conversation

epwalsh
Copy link
Member

@epwalsh epwalsh commented Sep 22, 2021

No description provided.

@epwalsh epwalsh requested a review from AkshitaB September 23, 2021 02:32

from allennlp.common import file_utils
from allennlp.common.file_utils import (
FileLock,
Copy link
Contributor

Choose a reason for hiding this comment

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

FileLock, _resource_to_filename, CacheFile, and _Meta should now come from cached_path, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, yes.. sort of. In file_utils I imported all of those things from cached_path to make sure that if anyone was using these utilities directly from file_utils, this change wouldn't break anything for them.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, gotcha.

@AkshitaB
Copy link
Contributor

AkshitaB commented Oct 8, 2021

@epwalsh Is this PR: #5429 relevant for the failing test case?

@epwalsh epwalsh merged commit ebd6b5b into main Oct 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants