🐛 Bug Report: Dart Runtime expects the entrypoint
file to be inside lib
folder
#6202
Closed
2 tasks done
Labels
👟 Reproduction steps
This issue has been moved here from open-runtimes#194, as suggested by Steven on Discord.
Previously on
1.3x
the entry point file was allowed to be used in the root directory & it wasn't necessary that it should be insidelib
directory.However, on
1.4x
function building fails.Even the default path for the entry point is
lib/main.dart
ifPlatform.environment['OPEN_RUNTIMES_ENTRYPOINT']
isnull
.If the entry point is in the root directory, the build fails with below error:
Build works fine if the
main.dart
is inside thelib
folder.The error stems from here, I believe:
Proposed solution:
Dart
file structure conventionlib
directory when building the function.👍 Expected behavior
entrypoint
as mentioned while deploying theFunction
.Dart
's standard file structure convention and let the developer know about this via Docs.entrypoint
file inside thelib
folder when preparing for the build.👎 Actual Behavior
Function build process fails with below error:
🎲 Appwrite version
Version 1.4.x
💻 Operating system
Linux
🧱 Your Environment
Nothing fancy, just the same old
localhost
.👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: