Rank 2: Process
Hello!
I am currently in the process of updating my functions to the newer version.
Previously, my function was on dart v2.17. Now, I wanted to update and had to update the runtime to dart v3.0
This is what I did so far:
- Update pubspec.yaml for new dart_appwrite package
environment: sdk: '>=3.0.0 <4.0.0'
dependencies: dart_appwrite: ^10.0.0 dev_dependencies: lints: ^2.0.1- In appwrite.json, update the runtime:
{ "$id": "xyz", "name": "xyz", "runtime": "dart-3.0", "path": "functions/xyz", "entrypoint": "lib/main.dart", "ignore": [ ".packages", ".dart_tool" ], "execute": [ "users" ], "events": [], "schedule": "", "timeout": 15 },- Changed runtime in appwrite console (image 1)
- Added the dart-3.0 to the .env in runtimes (image 2)
But still, when deploying, I get the following error:
Docker Error: Unable to find image 'openruntimes/dart:v2-3.0' locallydocker: Error response from daemon: manifest for openruntimes/dart:v2-3.0 not found: manifest unknown: manifest unknown.See 'docker run --help'.You can see the docker images I have in the third image.
I don't actually know dart that well, but I'm helping you walk through the debugging process