Closed CAMOBAP closed 3 years ago
Thanks @CAMOBAP . @andrew2net I would suggest you to directly read that file in Ruby code when defining classes as a constant. There is no need to load this file on runtime.
@andrew2net could we have a new release after this fix? We need it for packed-mn. Thanks!
Thanks @andrew2net - ping @CAMOBAP this is fixed and released.
Problem
Full log here https://github.com/metanorma/packed-mn/runs/1479616555?check_suite_focus=true#step:6:2703
Proposed solution
This happens only for
rubyc
packed app becauserubyc
pack everything on inmemory fs/__enclose_io_memfs__/
To fix this we need to load the file by the relative path like this
File.join(File.dirname(self.class::_file || __FILE__), 'statuses.yml')