Don't fail builds when using require() for Lua standard library files #5649
Labels
bob
Issues related to the bob command line build tool
feature request
A suggestion for a new feature
lua
Issues related to the use of Lua
Projects
Is your feature request related to a problem? Please describe (REQUIRED):
The build process picks up all calls to require() to detect which files that are required by the engine to make sure they are included in the application build. This can sometimes be a problem when using code from third-parties that are calling require() on Lua language namespaces such as "debug", "string" and "math" or for that matter calling require for commonly used Lua extensions such as "socket" or "lfs".
Describe the solution you'd like (REQUIRED):
Defold should still search for all calls to require() and include any Lua files matching these calls. Defold should however not fail a build if a file is missing. This should at most generate a warning.
Describe alternatives you've considered (REQUIRED):
It is sometimes possible to modify the third-party code that calls require() on a module, but it is not always convenient.
Additional context (OPTIONAL):
Most recent discussion around this: https://forum.defold.com/t/defold-1-2-180-has-been-released/67743/61?u=britzl
The text was updated successfully, but these errors were encountered: