Nixpacks uses an old dart sdk version
miguelife
FREEOP

10 months 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.

Solved

1 Replies

chandrika
EMPLOYEE

10 months 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 11 months ago


Railway
BOT

6 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 6 months ago


Loading...