Skip to content

Lima can't parse version if built from tag with dirty checkout #3477

@arixmkii

Description

@arixmkii

Description

Scenario:

  1. checkout tag
  2. apply patch using patch command
  3. build
  4. run integration tests

Error:

time="2025-04-28T17:17:27Z" level=fatal msg="failed to validate YAML file \"D:\\\\a\\\\qcw\\\\qcw\\\\lima-release\\\\templates\\\\experimental\\\\default-windows.yaml\": can't parse builtin Lima version \"v1.1.0.m\": strconv.ParseInt: parsing \"0.m\": invalid syntax"

I added 1.1.0 tag artificially here to have no issues in my development build (no tags fetched) with lima version being too low.

The issue will go away if I tag the previous commit to my build, because ".m" would be in the part cut by splitting on '-' symbol.

I believe that building from a tagged commit with local changes should still result in a working binary.

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