Skip to content

Commit

Permalink
add deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alexevanczuk committed Oct 18, 2021
1 parent dbadfac commit 3c6f3d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/packwerk/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def from_packwerk_config(path)
)

def initialize(configs = {}, config_path: nil)
# Note: *raise* if load_paths is present. This makes behavioral change more obvious
if configs['load_paths']
warn("DEPRECATION WARNING: The 'load_paths' key in `packwerk.yml` is deprecated. This value is no longer cached, and you can remove the key from `packwerky.yml`.")
end
@include = configs["include"] || DEFAULT_INCLUDE_GLOBS
@exclude = configs["exclude"] || DEFAULT_EXCLUDE_GLOBS
root = config_path ? File.dirname(config_path) : "."
Expand Down

0 comments on commit 3c6f3d6

Please sign in to comment.