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

platform detection fails under hab on windows #575

Open
clintoncwolfe opened this issue Feb 20, 2020 · 0 comments
Open

platform detection fails under hab on windows #575

clintoncwolfe opened this issue Feb 20, 2020 · 0 comments
Labels
Platform: Windows Type: Bug Feature not working as expected

Comments

@clintoncwolfe
Copy link
Contributor

Version:

train 3.2.2

Environment:

habitat 1.5.x

seen in inspec 4.18.51 and 4.18.95

windows server 2016

Scenario:

Steps to Reproduce:

hab pkg exec chef/inspec/4.18.51 inspec detect

Expected Result:

Like this, but for windows:

 ────────────────────────────── Platform Details ──────────────────────────────

Name:      linux
Families:  linux, unix, os
Release:   unknown
Arch:      x86_64

Actual Result:

Stacktrace:

       20: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/bin/inspec:229:in `<main>'
        19: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/bin/inspec:229:in `load'
        18: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/inspec-bin-4.18.95/bin/inspec:11:in `<top (required)>'
        17: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/inspec-core-4.18.95/lib/inspec/base_cli.rb:35:in `start'
        16: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
        15: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
        14: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
        13: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
        12: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/inspec-core-4.18.95/lib/inspec/cli.rb:306:in `detect'
        11: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/inspec-core-4.18.95/lib/inspec/cli.rb:408:in `run_command'
        10: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/inspec-core-4.18.95/lib/inspec/cli.rb:408:in `new'
         9: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/inspec-core-4.18.95/lib/inspec/runner.rb:78:in `initialize'
         8: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/inspec-core-4.18.95/lib/inspec/runner.rb:86:in `configure_transport'
         7: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/inspec-core-4.18.95/lib/inspec/backend.rb:38:in `create'
         6: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/train-core-3.2.22/lib/train/transports/local.rb:17:in `connection'
         5: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/train-core-3.2.22/lib/train/transports/local.rb:17:in `new'
         4: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/train-core-3.2.22/lib/train/transports/local.rb:27:in `initialize'
         3: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/train-core-3.2.22/lib/train/transports/local.rb:42:in `select_runner'
         2: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/train-core-3.2.22/lib/train/plugins/base_connection.rb:124:in `platform'
         1: from C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/train-core-3.2.22/lib/train/platforms/detect.rb:9:in `scan'
C:/hab/studios/Users--vagrant/hab/pkgs/chef/inspec/4.18.95/20200218180537/vendor/gems/train-core-3.2.22/lib/train/platforms/detect/scanner.rb:41:in `scan': Sorry, we are unable to detect your platform (Train::PlatformDetectionFailed)
@clintoncwolfe clintoncwolfe added Type: Bug Feature not working as expected Platform: Windows labels Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Windows Type: Bug Feature not working as expected
Projects
None yet
Development

No branches or pull requests

1 participant