Skip to content

Bundle a stable Dart 3.12.x: packages that require sdk ^3.12.2 don't resolve on 1.10.0 #111

Backlog

Description

@tayormi

Select your plan

Standard - priority support

Confirmations

  • I searched the existing feature requests and this is not a duplicate.

Framework or plugin?

Framework

Platform

Not platform-specific

Use case

DartNative 1.10.0 ships Dart 3.12.0-192.0.dev (bin/cache/dart-sdk/version; dn doctor shows "Dart version 3.12.0 (build 3.12.0-192.0.dev)"), a pre-release build. Packages whose environment.sdk floor is a 3.12 patch release don't resolve. For example, adding the Serverpod client (serverpod_client 4.x, generated by Serverpod for an app's own backend) fails:

$ dn pub add serverpod_client:4.1.2 --dry-run
The current Dart SDK version is 3.12.0-192.0.dev.

Because dn_issue_repros depends on serverpod_client >=4.0.0-rc.1 which requires SDK version >=3.12.2 <4.0.0, version solving failed.

dn releases lists 1.10.0 as the newest, so there is no DartNative release to move to. Our workaround is to vendor the client packages with only environment.sdk relaxed, and copy them again after every code generation, which can drift.

Proposal

Ship a stable Dart in each DartNative release, at or close to the current upstream patch (3.12.2 or later today), and say in the changelog which upstream Dart version each release bundles, so package authors and apps can plan for SDK floors.

If a pre-release Dart is needed for a while, a short note on the docs' install page about which sdk: constraints will not resolve would help people find out before they hit version solving.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions