Skip to content

The change names containing ] are not parsed correctly when used as dependencies #829

@brokenpylons

Description

@brokenpylons

For example:

%syntax-version=1.0.0
%project=test

testa[test]test 2024-05-23T11:14:35Z Žiga Leber <mail+github@zigaleber.com> # Add schema
testb [testa[test]test] 2024-05-23T11:16:00Z Žiga Leber <mail+github@zigaleber.com> # Something

This fails with:

Syntax error in sqitch.plan at line 5: Invalid name; names must not begin with punctuation, contain "@", ":", "#", "\", or blanks, or end in punctuation or digits following punctuation

The issue arises due to, the regex assumes the dependencies cannot contain ]. The example is then parsed as testb [testa[test] followed by test].

The easiest solution would be to revise the rule to: All other characters may be any UTF-8 character other than “:”, “@”, “#”, “\” and "]".

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