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

Removing the additional duplicate sub-directory from sanitize_path() #106

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

saketjajoo
Copy link
Contributor

The existing implementation adds an additional sub-directory with the same name when an image is pulled and is stored explicitly to a custom output directory. This happens because the "test_path" variable appends "path" to "base_dir" wherein the "path" variable itself is base_dir + filename. This commit fixes this problem.

@saketjajoo saketjajoo marked this pull request as ready for review September 21, 2023 05:19
@saketjajoo
Copy link
Contributor Author

This PR is a fix to #100.

@vsoch
Copy link
Contributor

vsoch commented Sep 21, 2023

A few requests as tests are running (and I'm switching back and forth to other work):

  • Let's please add tests that are outside of home, and that include relative and absolute paths
  • Please bump the version in oras/version.py
  • Make a corresponding note with the version in CHANGELOG.md

The existing implementation adds an additional sub-directory with the same name when an image is pulled and is stored explicitly to a custom output directory. This happens because the "test_path" variable appends "path" to "base_dir" wherein the "path" variable itself is base_dir + filename. This commit fixes this problem.

Signed-off-by: saketjajoo <[email protected]>
@saketjajoo
Copy link
Contributor Author

It seems that Python's black library recently made a change to validate the data type of the "exclude" key in the pyproject.toml file. Now the value for "exclude" must be a single-quoted string (for regex matches). I've added a second commit to this PR to address this.

…ntax for data types. This commit also formats the test_provider.py file.

Signed-off-by: saketjajoo <[email protected]>
@vsoch vsoch merged commit 4732198 into oras-project:main Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants