Skip to content

Prevent chain files from being saved in install directory#2835

Merged
joeyballentine merged 9 commits intomainfrom
chn-warning
May 8, 2024
Merged

Prevent chain files from being saved in install directory#2835
joeyballentine merged 9 commits intomainfrom
chn-warning

Conversation

@joeyballentine
Copy link
Member

@joeyballentine joeyballentine commented May 6, 2024

We've had numerous reports of people thinking that it is a good idea to save their chains in chaiNNer's install dir, only to lose all their chain files after updating (for example, #1756).

This PR should prevent this in the future. Now, if someone tries to save to this directory, it will error and tell them to pick a different one. Also, it checks on startup if any chain files are stored in this directory (i.e. if someone moved them there manually) and gives a warning before starting up.

One concern is that this still applies in portable mode. It's most likely fine for people to put chain files in their portable folder, so should we not do these things for portable installs?

Copy link
Member

@RunDevelopment RunDevelopment left a comment

Choose a reason for hiding this comment

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

Thanks Joey!

@joeyballentine joeyballentine merged commit 3f1fbdf into main May 8, 2024
@joeyballentine joeyballentine deleted the chn-warning branch May 8, 2024 20:58
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.

2 participants