bisakhmondal commented on pull request #1788:
URL: https://github.com/apache/apisix-dashboard/pull/1788#issuecomment-841684415


   >Are there any related error logs?
   
   Hi @nic-chen, sorry I didn't get it.
   
   The snippet I mentioned earlier was the existing code that we are using for 
Lua to go compiler VM. Till now, I couldn't figure out the workaround as after 
embedding the dag-to-dua package will be an in-memory filesystem (no way I can 
make `os.Chdir` and `local dag_to_lua = require 'dag-to-lua'` to import the 
package  ). 
   
   All I can do is, read the content of the individual script from the 
directory stored in memory fs as per the current set of apis exposed through 
the go official `io/fs` package [link](https://golang.org/pkg/io/fs/)
   
   Another way we can tackle this by reading and joining the individual scripts 
into a monolithic script. what do you think?
   
   I don't know Lua (wishing to give it a try real soon 😄), so it would be 
great to have some heads up on this topic :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to