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

If files are moved and the cache exists, it hangs up #18

Open
JJ opened this issue Aug 6, 2019 · 2 comments
Open

If files are moved and the cache exists, it hangs up #18

JJ opened this issue Aug 6, 2019 · 2 comments

Comments

@JJ
Copy link
Contributor

JJ commented Aug 6, 2019

If you change the structure of a cached folder and don't delete the cache. it will hang up.

To reproduce:

  • Cache one directory foo with files bar baz
  • mkdir foo/quux
  • cd foo
  • mv bar baz quux

Try to run the program again... It simply freezes.

@finanalyst
Copy link
Owner

What should be the behaviour? Why would a developer want to change the structure of the cached folder?

The idea behind 'freeze' is to allow for the documentation to be "compiled" and moved. But why would the folder structure need to be changed.

My paradigm is that messing with a cache except through the API is like messing with a modules code.

@JJ
Copy link
Contributor Author

JJ commented Aug 12, 2019

Well, he or she might want to do it because they've changed their opinion, as I did. it can simply happen. You might not want that to happen, but in that case it's better to raise an exception or a meaningful error instead of not doing anything.

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

No branches or pull requests

2 participants