Skip to content

[query] Fix copy_log when log path is relative.#13340

Merged
danking merged 1 commit into
hail-is:mainfrom
chrisvittal:fix-copy-log
Aug 2, 2023
Merged

[query] Fix copy_log when log path is relative.#13340
danking merged 1 commit into
hail-is:mainfrom
chrisvittal:fix-copy-log

Conversation

@chrisvittal

Copy link
Copy Markdown
Collaborator

the local_path_uri function simply prepends 'file://' to the path provided. This leads to an odd situation were a relative path is transformed into 'file://relative/path/to/log', which parses as:

SCHEME: file
HOST : relative
PATH : path/to/log

To fix this, compute the real path of the log file and use that as the path for the local_path_uri

the local_path_uri function simply prepends 'file://' to the path
provided. This leads to an odd situation were a relative path is
transformed into 'file://relative/path/to/log', which parses as:

SCHEME: file
HOST  : relative
PATH  : path/to/log

To fix this, compute the real path of the log file and use that as the
path for the local_path_uri
@danking danking merged commit 3fb7e05 into hail-is:main Aug 2, 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.

3 participants