You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configuring --cache-root would behave exactly like setting RUBOCOP_CACHE_ROOT or AllCops: CacheRootDirectory, modulo precedence.
Actual behavior
The --cache-root flag specifies the exact cache folder. The other two options end up creating a nested rubocop_cache directory. I think I see from the code why this is happening but it is perplexing as an end user (and messed up my CI cache at first).
Steps to reproduce the problem
Specify a directory to --cache-root and separately either of the other options and observe that the directory structure it creates is different.
I'm not sure if this should be changed to match or if the difference should just be documented but it is very surprising as-is. I actually prefer the --cache-root behavior (so i don't have an extra nesting of directories) but the main issue here is that it is confusing.
The text was updated successfully, but these errors were encountered:
dgollahon
changed the title
Odd behavior with --cache-root
Odd inconsistency with --cache-rootJun 28, 2022
Expected behavior
Configuring
--cache-root
would behave exactly like settingRUBOCOP_CACHE_ROOT
orAllCops: CacheRootDirectory
, modulo precedence.Actual behavior
The
--cache-root
flag specifies the exact cache folder. The other two options end up creating a nestedrubocop_cache
directory. I think I see from the code why this is happening but it is perplexing as an end user (and messed up my CI cache at first).Steps to reproduce the problem
Specify a directory to
--cache-root
and separately either of the other options and observe that the directory structure it creates is different.RuboCop version
I'm not sure if this should be changed to match or if the difference should just be documented but it is very surprising as-is. I actually prefer the
--cache-root
behavior (so i don't have an extra nesting of directories) but the main issue here is that it is confusing.The text was updated successfully, but these errors were encountered: