Skip to content

Conversation

@jkeifer
Copy link
Member

@jkeifer jkeifer commented Nov 7, 2023

I ran into some issues with workdir not being absolute, specifically with stac-asset trying to download remote assets for an item with some local assets with hrefs based on the workdir and therefore non-absolute paths. Forcing the workdir path to be absolute works around this issue.

I think this change also helps in the case where processing code changes the working directory for some reason. As relative paths are interpreted relative to the cwd, changing the cwd could cause really bad things to happen if the workdir path is not absolute.

@jkeifer jkeifer requested a review from matthewhanson November 7, 2023 19:48
@jkeifer jkeifer self-assigned this Nov 7, 2023
@jkeifer jkeifer merged commit 397f045 into main Nov 8, 2023
@jkeifer jkeifer deleted the jak/absolute-workdir branch November 8, 2023 18:12
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.

3 participants