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

fix(config): handle windows paths in invokeai.yaml migration for legacy_conf_dir #6101

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

psychedelicious
Copy link
Collaborator

Summary

The logic incorrectly set the legacy_conf_dir on windows, where the slashes go the other direction. Handle this case and update tests to catch it.

Related Issues / Discussions

An issue where the conversion YAML configs were not located correctly started the investigation:
https://discord.com/channels/1020123559063990373/1224562758469681272

QA Instructions

  • Set a v3-style invokeai.yaml with legacy_conf_dir set to configs\stable-diffusion (note the slash)
  • Start the app up, it will migrate the file
  • Check invokeai.yaml again, there should be no legacy_conf_dir setting now (because we detected it was using the default value)

Merge Plan

It'd be nice if @empessah could confirm deleting the legacy_conf_dir in the new invokeai.yaml file fixes the issue, but this is definitely a bug regardless.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

…cy_conf_dir

The logic incorrectly set the `legacy_conf_dir` on windows, where the slashes go the other direction. Handle this case and update tests to catch it.
@github-actions github-actions bot added python PRs that change python files services PRs that change app services python-tests PRs that change python tests labels Apr 2, 2024
@hipsterusername hipsterusername merged commit e655399 into main Apr 2, 2024
14 checks passed
@hipsterusername hipsterusername deleted the psyche/fix/migrate-config-path branch April 2, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python PRs that change python files python-tests PRs that change python tests services PRs that change app services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants