opensbom-generator / spdx-sbom-generator

Support CI generation of SBOMs via golang tooling.
407 stars 110 forks source link

Getting error when installing dependencies on Mac #304

Open perifitdevs opened 1 year ago

perifitdevs commented 1 year ago

Hello,

I've been trying to generate SBOM in my project but I still cannot run the tool successfully since I got some error related to dependencies installing. I got this error:

INFO[2023-09-06T17:45:15+07:00] Starting to generate SPDX ...
FATA[2023-09-06T17:45:15+07:00] Failed to initialize command: * Tool only supports ruby gems projects with valid .gemspec manifest in project root directory

Then I tried this command that I found in issues: bundle config set --local path 'vendor/bundle' && bundle install && bundle exec rake install

I got another error:

No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /Users/binhtnt/Perifit/mainapp/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/exe/rake:27:in <top (required)>' /Users/binhtnt/.rvm/gems/ruby-3.1.3/bin/ruby_executable_hooks:22:ineval' /Users/binhtnt/.rvm/gems/ruby-3.1.3/bin/ruby_executable_hooks:22:in `

' (See full trace by running task with --trace)

Here is my Gemfile:

source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '>= 2.6.10'

gem 'rake', '>= 11.3.0'

gem 'bundler', '>= 2.3.26'

gem 'cocoapods', '>= 1.11.3'

Looking forward for your help. Thanks