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

Pass a PathMapper to the function that computes checksums #1829

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kinow
Copy link
Member

@kinow kinow commented Apr 19, 2023

Closes #1828

I believe without the pathmapper we get a staged dir location that may not exist, resulting in the error reported in the issue. There is at least one other function in the visitors that take a pathmapper (I think the check_permissions?), so I did something similar to resolve the actual file so that we can access its stats when checking its hash.

@bartns if you could test this PR that'd be grand, but I'm still going to wait for someone else with more experience in this part of the code to review before adding tests (or fixing any test that may be broken after this change).

Cheers,
Bruno

@bartns
Copy link

bartns commented Apr 19, 2023

Hi Bruno,
Seems to work!
(Tested it only with example in #1828)

@kinow kinow force-pushed the pass-pathmapper-to-checksum-fn branch from beaeccc to afe65cb Compare April 19, 2023 15:29
@kinow kinow force-pushed the pass-pathmapper-to-checksum-fn branch from afe65cb to 415c492 Compare April 19, 2023 15:46
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.

Workflow error with HTTP files and --cachedir
2 participants