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

Can't pack a project with relative paths #142

Open
zatkowich opened this issue Dec 19, 2020 · 0 comments
Open

Can't pack a project with relative paths #142

zatkowich opened this issue Dec 19, 2020 · 0 comments

Comments

@zatkowich
Copy link

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>'
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