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

Change the caching of remote configs to live alongside the parent file #2891

Merged
merged 1 commit into from
Mar 4, 2016

Conversation

Fryguy
Copy link
Contributor

@Fryguy Fryguy commented Feb 26, 2016

If a user cds into a different directory, then the cached file for inherit_from with a remote URL would live in that directory. This PR changes that to have it live alongside the rubocop.yml that defined the inherit_from.

This issue affected me in an interesting way in that I use SublimeLinter to run rubocop in Sublime Text. I believe SublimeLinter must be cding to the directory of the file in question, and so the inherit_from caching of remote URLs is littering my directory structure with .rubocop-http---example-com-rubocop-yml files. With this change the user can just .gitignore the one cache file.

I've spoken to vim users using syntastic, and they have same problem as well. If they cd into a directory and then start vim from that directory, then the cache file will live there, ultimately littering a number of directories.

@bdunne
Copy link

bdunne commented Feb 26, 2016

👍

@bbatsov
Copy link
Collaborator

bbatsov commented Mar 1, 2016

The change looks good, but it needs a changelog entry.

@Fryguy Fryguy force-pushed the cache_remote_urls_in_one_place branch from 9d460f1 to 2493a6f Compare March 2, 2016 16:58
@Fryguy
Copy link
Contributor Author

Fryguy commented Mar 2, 2016

@bbatsov Changelog updated.

@kbrock
Copy link

kbrock commented Mar 3, 2016

👍

1 similar comment
@blackjid
Copy link

blackjid commented Mar 3, 2016

👍

bbatsov added a commit that referenced this pull request Mar 4, 2016
Change the caching of remote configs to live alongside the parent file
@bbatsov bbatsov merged commit 0220b03 into rubocop:master Mar 4, 2016
@Fryguy Fryguy deleted the cache_remote_urls_in_one_place branch March 4, 2016 21:40
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.

5 participants