Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Written explanation for why tilde key cannot be used for $HOME #3690

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

mus1cholic
Copy link
Contributor

Patch description

Added an informative message in comments for why the TILDE key cannot be used in mephisto.blueprint.chat_data_folder argument.

Testing steps

Just comments in this PR.
CircleCI tests ran successfully.

Other information

Copy link
Contributor

@EricMichaelSmith EricMichaelSmith left a comment

Choose a reason for hiding this comment

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

Great, thanks a lot! Approving, but see my minor comment

# TODO: allow ~ to be parsed correctly
# Currently Hydra overrides the tilde key at lower levels as described here: https://hydra.cc/docs/next/advanced/override_grammar/basic/#grammar
# Thus the TILDE key cannot be used in replacement for $HOME variable
# Some hacky solution can probably be achieved but won't be good code so for now this assert is written as a placeholder
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for adding this comment! This line is a bit long - if you get a Lint error for this line, you might want to split this into 2 lines (./autoformat.sh might also fix this for you, not sure)

@mus1cholic mus1cholic merged commit 26295bb into master Jun 7, 2021
@mus1cholic mus1cholic deleted the model-chat-save-folder-tilde-caution branch June 7, 2021 18:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants