8000 documentation for using specific version in manifest file is misleading · Issue #9 · hakirisec/hakiri_toolbelt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
documentation for using specific version in manifest file is misleading #9
Open
@mp-jwolkerstorfer

Description

@mp-jwolkerstorfer

On https://hakiri.io/docs/manifest-file, the code showing a specific version of a technology shows
"ruby": { "version": "1.9.3.429" }
but this syntax causes hakiri system:scan to fail with

/usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/hakiri-0.7.2/lib/hakiri/technology.rb:22:in `puts_error': undefined method `lines' for nil:NilClass (NoMethodError)
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/hakiri-0.7.2/lib/hakiri/technologies/ruby.rb:13:in `rescue in version'
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/hakiri-0.7.2/lib/hakiri/technologies/ruby.rb:9:in `version'
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/hakiri-0.7.2/lib/hakiri/stack.rb:138:in `block in fetch_versions'
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/hakiri-0.7.2/lib/hakiri/stack.rb:132:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/hakiri-0.7.2/lib/hakiri/stack.rb:132:in `fetch_versions'
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/hakiri-0.7.2/lib/hakiri/cli/system.rb:8:in `scan'
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/hakiri-0.7.2/bin/hakiri:34:in `block (2 levels) in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/commander-4.3.0/lib/commander/command.rb:179:in `call'
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/commander-4.3.0/lib/commander/command.rb:179:in `call'
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/commander-4.3.0/lib/commander/command.rb:154:in `run'
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/commander-4.3.0/lib/commander/runner.rb:421:in `run_active_command'
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/commander-4.3.0/lib/commander/runner.rb:81:in `run!'
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/commander-4.3.0/lib/commander/delegates.rb:19:in `run!'
from /usr/local/rvm/gems/ruby-1.9.3-p484@mpcp/gems/commander-4.3.0/lib/commander/import.rb:10:in `block in <top (required)>'

Instead, the manifest requires the command key to be present, like so:
"ruby": { "command": "", "version": "1.9.3.429" }

It will also run correctly with the command specified:
"ruby": { "command": "ruby --version", "version": "1.9.3.429" }
This will (correctly, in my opinion) return information about the specified version rather than the version found by the command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0