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

omnibus always tries to mkdir /opt/$PROJECT #952

Open
jaymzh opened this issue Jun 18, 2020 · 0 comments
Open

omnibus always tries to mkdir /opt/$PROJECT #952

jaymzh opened this issue Jun 18, 2020 · 0 comments

Comments

@jaymzh
Copy link
Collaborator

jaymzh commented Jun 18, 2020

Description

omnibus always tries to mkdir /opt/$PROJECT even when base_dir is overwritten to be ./local as shown in the default omnibus.rb comments.

Omnibus Version

v7.0.13

Platform Version

Debian sid

Replication Case

set:

base_dir './local'

Try to build anything as non-root. Or sugarjar if you want something specific.

Build Output

  [PathFetcher: sugarjar] I | 2020-06-17T21:56:28-07:00 | Digesting /home/phil/src/git/sugarjar/omnibus/local/src/sugarjar with sha256
Traceback (most recent call last):
	17: from ./bin/omnibus:29:in `<main>'
	16: from ./bin/omnibus:29:in `load'
	15: from /home/phil/.rvm/gems/ruby-2.6.3/gems/omnibus-7.0.13/bin/omnibus:16:in `<top (required)>'
	14: from /home/phil/.rvm/gems/ruby-2.6.3/gems/omnibus-7.0.13/lib/omnibus/cli.rb:42:in `execute!'
	13: from /home/phil/.rvm/gems/ruby-2.6.3/gems/thor-1.0.1/lib/thor/base.rb:485:in `start'
	12: from /home/phil/.rvm/gems/ruby-2.6.3/gems/omnibus-7.0.13/lib/omnibus/cli/base.rb:33:in `dispatch'
	11: from /home/phil/.rvm/gems/ruby-2.6.3/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
	10: from /home/phil/.rvm/gems/ruby-2.6.3/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
	 9: from /home/phil/.rvm/gems/ruby-2.6.3/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
	 8: from /home/phil/.rvm/gems/ruby-2.6.3/gems/omnibus-7.0.13/lib/omnibus/cli.rb:89:in `build'
	 7: from /home/phil/.rvm/gems/ruby-2.6.3/gems/omnibus-7.0.13/lib/omnibus/project.rb:1074:in `build'
	 6: from /home/phil/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:200:in `mkdir_p'
	 5: from /home/phil/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:200:in `each'
	 4: from /home/phil/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:215:in `block in mkdir_p'
	 3: from /home/phil/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:215:in `reverse_each'
	 2: from /home/phil/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:217:in `block (2 levels) in mkdir_p'
	 1: from /home/phil/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:239:in `fu_mkdir'
/home/phil/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/fileutils.rb:239:in `mkdir': Permission denied @ dir_s_mkdir - /opt/sugarjar (Errno::EACCES)
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

No branches or pull requests

1 participant