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

Revert to regular require to fix transport loading across gem boundary #572

Merged
merged 1 commit into from
Feb 14, 2020

Conversation

clintoncwolfe
Copy link
Contributor

Signed-off-by: Clinton Wolfe clintoncwolfe@gmail.com

Fixes inspec/inspec-azure#234 .

You can't require_relative a file when it is contained in a separate gem. So, our train-core / train split means we need to require these bundled files.

Description

Related Issue

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.

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
@codeclimate
Copy link

codeclimate bot commented Feb 14, 2020

Code Climate has analyzed commit c9c5c72 and detected 6 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 6

View more on Code Climate.

require "ms_rest_azure"
require "azure_mgmt_resources"
require "azure_graph_rbac"
require "azure_mgmt_key_vault"
require "socket"
require "timeout"
require_relative "helpers/azure/file_credentials"
require_relative "clients/azure/graph_rbac"
require_relative "clients/azure/vault"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you need these three because they're in the glob but :shipit:

@clintoncwolfe clintoncwolfe merged commit 7204d03 into master Feb 14, 2020
@clintoncwolfe clintoncwolfe deleted the cw/fix-bundled-transport-loading branch February 14, 2020 21:43
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

Successfully merging this pull request may close these issues.

2 participants