exercism / bugs

Please use https://github.com/exercism/exercism for reporting bugs.
1 stars 3 forks source link

Git::RepoBase isn't maintaining repo_base_dir in development #27

Closed iHiD closed 5 years ago

iHiD commented 5 years ago

Git::RepoBase::repo_base_dir is often nil in development.

I suspect this is an issue with the Rails constant autoloading, which means the Git::RepoBase is "reset" when the constants are reloaded in dev, but initializers are not recalled, so the cattr is set to nil.

I think we should consider just directly accessing Rails.application.config_for("repos")["base_dir"] from within the class, or something similar.