Skip to content

Parsing error when floor of package version number range is incomplete #35

@Rhal95

Description

@Rhal95

When a package is specified in the gleam.toml like this

gleam_stdlib = ">= 0.34 and < 2.0.0"

it will produce a very unhelpful parsing error.

$ gleam deps update
  Resolving versions
error: Dependency resolution failed

An error occurred while determining what dependency packages and
versions should be downloaded.
The error from the version resolver library was:

An error occurred while trying to retrieve dependencies of
[email protected]: encountered unexpected token: " "

$

Considering that the now deprecated schema "~> 0.34" was generated by older versions of gleam add it can easily happen that a bad version like this is written while updating older libraries.

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