ruby-packer
ruby-packer copied to clipboard
Can't pack a project with relative paths
I have following project structure:
.
|-- project_a
| `-- main.rb
|-- project_b
| `-- main.rb
`-- common
`-- include.rb
Both projects use
require_relative '../common/include.rb
however after a successful build by
rubyc --make-args="-j $(nproc)" --root=. --output=./project_a project_a/main.rb
and running the binary I obtain
/__enclose_io_memfs__/local/client/client.rb:6:in `require_relative': cannot load such file -- /__enclose_io_memfs__/local/common/config (LoadError)
from /__enclose_io_memfs__/local/client/client.rb:6:in `<top (required)>'
from /__enclose_io_memfs__/local/client/main.rb:1:in `require_relative'
from /__enclose_io_memfs__/local/client/main.rb:1:in `<main>'