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

git is a required dependency #1765

Open
LukeShortCloud opened this issue Feb 24, 2021 · 2 comments
Open

git is a required dependency #1765

LukeShortCloud opened this issue Feb 24, 2021 · 2 comments

Comments

@LukeShortCloud
Copy link

On Debian 11, after installing the dependencies [1] and running fpm -s rpm -t deb <RPM_NAME>.rpm an occur is presented about git not being found. After installing the package, the error no longer appears and the command works correctly.

Traceback (most recent call last):
	14: from /usr/local/bin/fpm:23:in `<main>'
	13: from /usr/local/bin/fpm:23:in `load'
	12: from /var/lib/gems/2.7.0/gems/fpm-1.12.0/bin/fpm:4:in `<top (required)>'
	11: from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in `require'
	10: from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in `require'
	 9: from /var/lib/gems/2.7.0/gems/fpm-1.12.0/lib/fpm.rb:5:in `<top (required)>'
	 8: from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in `require'
	 7: from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in `require'
	 6: from /var/lib/gems/2.7.0/gems/fpm-1.12.0/lib/fpm/package/gem.rb:7:in `<top (required)>'
	 5: from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in `require'
	 4: from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb:85:in `require'
	 3: from /var/lib/gems/2.7.0/gems/git-1.8.1/lib/git.rb:28:in `<top (required)>'
	 2: from /var/lib/gems/2.7.0/gems/git-1.8.1/lib/git/lib.rb:1000:in `meets_required_version?'
	 1: from /var/lib/gems/2.7.0/gems/git-1.8.1/lib/git/lib.rb:990:in `current_command_version'
/var/lib/gems/2.7.0/gems/git-1.8.1/lib/git/lib.rb:1097:in `command': git '-c' 'color.ui=false' version   2>&1:sh: 1: git: not found (Git::GitExecuteError)
  1. https://fpm.readthedocs.io/en/latest/installing.html
LukeShortCloud added a commit to LukeShortCloud/fpm that referenced this issue Feb 24, 2021
@jordansissel
Copy link
Owner

jordansissel commented Feb 24, 2021 via email

@LukeShortCloud
Copy link
Author

Thanks for the quick response! I downloaded your branch with the fixes, removed git from my system, installed the gem, and verified it works now!

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 a pull request may close this issue.

2 participants