Skip to content

Document that --define requires string values to be json encoded when containing certain characters #4310

@schultek

Description

@schultek

I ran into a weird issue where it seems that when providing build options like this:

dart run build_runner build --define=some_package:some_builder=some_option="Priority 6"

on Windows the value of that option in the builder includes the " quotes as part of the String.


  • Dart SDK version: 3.10.4 (stable) (Tue Dec 9 00:01:55 2025 -0800) on "windows_x64"
  • build_runner 2.10.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions