Skip to content

Syntax error with ini values in laminas-ci.json #7

@gsteel

Description

@gsteel

I'm having some issues with adding ini values to .laminas-ci.json - I can't figure out why, but it appears that all the ini values are getting joined to a single line with spaces instead of a new line.

With some test json, running the below on my local machine does exactly what it's supposed to - each element is joined with \n as you'd expect, but still I have "Syntax error, unexpected =" when PHP parses the 99-settings.ini in CI.

INI=$(echo "${JOB}" | jq -r '.ini | join("\n")')

So far, I've tried

  • cat path/to/99-settings.ini to inspect the .ini file to verify the issue
  • tried adding extra empty strings in the list of ini values ["foo=bar", "", "other=baz"]
  • tried just a single ini setting - ["foo=bar"]

I can see that the matrix action is sending sane JSON with a prepended memory_limit=-1 and everything was working fine just a few day ago 🤷‍♂️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions