Skip to content

Poetry Cache does not consider changes in pyproject.toml #559

@tomuben

Description

@tomuben

Checklist

In order to improve the time, how long a bugfix does take, please make sure you address as much as possible of the following checklist.

  • I have reproduced the issue with at least the latest released version of <PROJECT-NAME>.
  • I have added references to issues that sound similar in section Related Issues.

Tip: Adding screenshots, outputs and logs might help to improve clarity.
Check https://github.com/exasol/pyexasol/actions/runs/17493830554/job/49689793044?pr=243

Summary

Cache does not consider changes in pyproject.toml

Reproducing the Issue

Reproducibility: always

Steps to reproduce the behavior:

  1. Update version in your Python project pyproject.toml
  2. Create a PR
  3. Observe the Github workflows: They will reuse the existing Poetry cache, although the version number has changed

Expected Behaviour

The Poetry cache should be invalidated if the version number changes.

Actual Behaviour

The Poetry cache is being reused if the version number changes.

Root Cause (optional)

The poetry cache does not consider the pyproject.toml content, check here
=> The sha of the pyproject.toml should be part of the cache

Metadata

Metadata

Assignees

Labels

bugUnwanted / harmful behavior

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions