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

Errors after upgrading to Chef DK 2.0.28 #1

Closed
nweddle opened this issue Aug 4, 2017 · 0 comments
Closed

Errors after upgrading to Chef DK 2.0.28 #1

nweddle opened this issue Aug 4, 2017 · 0 comments

Comments

@nweddle
Copy link
Contributor

nweddle commented Aug 4, 2017

[Linter] Error running cookstyle Error: -s/--stdin requires exactly one path.
/opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/rubocop-0.49.1/lib/rubocop/options.rb:30:in `parse'
/opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/rubocop-0.49.1/lib/rubocop/cli.rb:23:in `run'
/opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/rubocop-0.49.1/bin/rubocop:13:in `block in <top (required)>'
/opt/chefdk/embedded/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
/opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/rubocop-0.49.1/bin/rubocop:12:in `<top (required)>'
/opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/cookstyle-2.0.0/bin/cookstyle:13:in `load'
/opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/cookstyle-2.0.0/bin/cookstyle:13:in `<top (required)>'
/opt/chefdk/bin/cookstyle:263:in `load'
/opt/chefdk/bin/cookstyle:263:in `<main>'
    at /Users/nweddle/.atom/packages/linter-cookstyle/lib/index.coffee:48:15
    at process._tickCallback (internal/process/next_tick.js:103:7)

Looks like this is caused by the version of rubocop (0.49.1) that was included in ChefDK 2.0.13
See: rubocop/rubocop#4226

nweddle added a commit to nweddle/linter-chefstyle that referenced this issue Aug 4, 2017
tduffield added a commit that referenced this issue Aug 13, 2017
Move stdin argument to end of exec command, fixes #1
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

1 participant