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

CHEF-11996: Move cookstyle as a dependency to inspec-core.gemspec #7034

Merged
merged 2 commits into from
May 6, 2024

Conversation

ahasunos
Copy link
Contributor

Description

This PR moves the cookstyle gem dependency from inspec.gemspec (it was included in inspec.gemspec to keep 'chef-client' lightweight) to inspec-core.gemspec file.

This change is necessary due to a dependency on the ast gem in https://github.com/inspec/inspec/blob/main/lib/inspec/utils/profile_ast_helpers.rb, which is causing a LoadError ('cannot load such file -- ast') for users and applications using 'inspec-core'.

Related Issue

CHEF-11996: InSpec core fails with a LoadError: `require': cannot load such file -- ast

chef/chef#14096

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New content (non-breaking change)
  • Breaking change (a content change which would break existing functionality or processes)

Checklist:

  • I have read the CONTRIBUTING document.

@ahasunos ahasunos requested a review from a team as a code owner April 30, 2024 08:14
Copy link

netlify bot commented Apr 30, 2024

Deploy Preview for chef-inspec canceled.

Name Link
🔨 Latest commit b406cfa
🔍 Latest deploy log https://app.netlify.com/sites/chef-inspec/deploys/663375da3048e7000873d1bf

Signed-off-by: Sonu Saha <sonu.saha@progress.com>
@ahasunos ahasunos force-pushed the ss/fix-ast-load-error-inspec-core branch from d6be069 to b7cd4f1 Compare May 2, 2024 09:02
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
@ahasunos ahasunos merged commit 9ab6a46 into main May 6, 2024
11 of 12 checks passed
@ahasunos ahasunos deleted the ss/fix-ast-load-error-inspec-core branch May 6, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants