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

Pin ffi to 1.12.2 due to Windows crash #5060

Merged
merged 1 commit into from Jun 2, 2020

Conversation

james-stocks
Copy link
Contributor

See ffi/ffi#784

Signed-off-by: James Stocks jstocks@chef.io

@james-stocks james-stocks added Type: Bug Feature not working as expected Platform: Windows Windows-specific issues labels Jun 2, 2020
@james-stocks james-stocks requested a review from a team as a code owner June 2, 2020 13:51
@james-stocks
Copy link
Contributor Author

See the verify pipeline build history for the failures this addresses:
https://buildkite.com/chef-oss/inspec-inspec-master-verify/builds?branch=master

The bug manifests as InSpec quietly crashing on Windows for any command except version.

Gemfile Outdated
@@ -9,7 +9,7 @@ gem "inspec", path: "."
# in it in order to package the executable. Hence the odd backwards dependency.
gem "inspec-bin", path: "./inspec-bin"

gem "ffi", ">= 1.9.14"
gem "ffi", "1.12.2" # 1.13 does not work on Windows: https://github.com/ffi/ffi/issues/784
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we loosen this to [">= 1.9.14", "< 1.13"] to allow flexibility in resolving this when packaging?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, updated.

See ffi/ffi#784

Signed-off-by: James Stocks <jstocks@chef.io>
Copy link
Contributor

@clintoncwolfe clintoncwolfe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@james-stocks james-stocks merged commit 6f4c85a into inspec:master Jun 2, 2020
@james-stocks james-stocks deleted the js/pin_ffi branch June 2, 2020 16:56
@Schwad
Copy link
Contributor

Schwad commented Jun 3, 2020

Thanks very much for this @james-stocks ! I just ran this code on a windows machine that was broken yesterday and now up and running 100%! 🎉 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Windows Windows-specific issues Type: Bug Feature not working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants