a year ago
I can't build and deploy a back-end that uses dart_frog because Nixpacks dart sdk version is 3.0.6, an outdated sdk version.
I'm following official dart_frog railway deployment guide (https://dartfrog.vgv.dev/docs/deploy/railway) and it's failing because of that.
Logs->
Build failed with 1 error
[6/9] RUN dart pub get
"dart pub get" did not complete successfully: exit code: 1
Resolving dependencies...
The current Dart SDK version is 3.0.6.
Because project_api depends on dart_frog_cli >=1.2.5 which requires SDK version ^3.5.0, version solving failed.
1 Replies
a year ago
Could you try specify a custom build plan in your project to use a newer version of the Dart SDK that matches your dart_frog dependency requirement?
You could customize the build environment by defining a nixpacks.toml file in your project and specify the desired version of the Dart SDK. Something like:
[build]
[build.args]
dart = "3.5.0"Status changed to Awaiting User Response Railway • 12 months ago
7 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 7 months ago