Closed jnahelou closed 2 years ago
As a workaround, I switched locally in libraries/backend/azure_require.rb
-require 'active_support/core_ext/hash'
+#require 'active_support/core_ext/hash'
+require 'active_support'
and inspec.yml
depends:
- name: inspec-azure
path: /home/jnahelou/perso/inspec-azure
I ran into this issue as well. Thanks for mentioning the workaround
I also ran into this problem.
I am running kitchen in a vscode devcontainer
# Dockerfile
ARG VARIANT=2-bullseye
FROM mcr.microsoft.com/vscode/devcontainers/ruby:0-${VARIANT}
ENV KITCHEN_TF_VERSION='6.0.0'
ENV KITCHEN_SSH_VERSION='1.0.3'
...
RUN gem install \
kitchen-terraform:${KITCHEN_TF_VERSION} \
kitchen-ssh:${KITCHEN_SSH_VERSION}
It is not a solution for me to locally clone the inspec-azure repo. Is there a fix planned ?
I ran into this issue as well. Any updates on the fix?
investigating the issue, a fix should be pushed by EOW.
will be fixed as part of https://github.com/inspec/inspec-azure/pull/608
Inspec crash due to missing import in active support while using inspec-azure.
How to reproduce
I found here that they moved to autoload but in inspec-azure, the autoload seems not triggered in requirements:
https://github.com/inspec/inspec-azure/blob/642b6ac749efd11a179f7793283c1d1bd457181b/libraries/backend/azure_require.rb#L8