abatilo / actions-poetry

GitHub Actions for Python projects using poetry
MIT License
431 stars 43 forks source link

Install Failure Bug #53

Closed holmanb closed 2 years ago

holmanb commented 2 years ago

Is this reportable here? This was seen while using the plugin.

Run poetry install
  poetry install
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.7.14/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.7.14/x64/lib

  RuntimeError

  The Poetry configuration is invalid:
    - Additional properties are not allowed ('group' was unexpected)

  at /opt/hostedtoolcache/Python/3.7.14/x64/lib/python3.7/site-packages/poetry/core/factory.py:43 in create_poetry
       39│             message = ""
       40│             for error in check_result["errors"]:
       41│                 message += "  - {}\n".format(error)
       42│ 
    →  43│             raise RuntimeError("The Poetry configuration is invalid:\n" + message)
       44│ 
       45│         # Load package
       46│         name = local_config["name"]
       47│         version = local_config["version"]
Error: Process completed with exit code 1.

I think the GH Actions links are ephemeral, but here is one to the failing job in case that helps.

holmanb commented 2 years ago

I'm starting to think this is me just running poetry versions on unsupported or broken platforms. If so feel free to close this issue.

abatilo commented 2 years ago

Hi @holmanb, I don't think this is a matter of running an unsupported version of poetry. I think you're actually just misconfiguring poetry itself. Your error message says so:

  The Poetry configuration is invalid:
    - Additional properties are not allowed ('group' was unexpected)

Closing for now but if you disagree, let me know!

sulunemre commented 2 years ago

"Dependency groups" is a new feature in Poetry, added in version 1.2 To use the latest version, you need to specify it in the workflow file:

- name: Install poetry
  uses: abatilo/actions-poetry@v2
  with:
    poetry-version: 1.2