Skip to content

Make bootstrap scripts more flexible with //| mill-version key #5309

Open
@lihaoyi

Description

@lihaoyi

Currently, the //| mill-version: value syntax has a lot of limitations:

  • It must be on the first line of the build header
  • mill-version must be unquoted
  • value must be unquoted
  • There can be no YAML comments or anything after the value

These limitations come from the necessity to parse this line in the ./mill and ./mill.bat bootstrap scripts, but they are very restrictive. While we cannot hope to parse the entirety of YAML in bash and bat code, we should try making the scripts a bit smarter to loosen these restrictions:

  • Allow //| mill-version on any line of the build header
  • Allow mill-version and value to be quoted by single or double quotes
  • Allow YAML comments to be placed after the build header

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