Skip to content

The "No change in requirements detected, installing from cache" message is sometimes shown incorrectly #1678

@edmorley

Description

@edmorley

Currently if the cache was discarded due to a reason other than the requirements.txt file changing and the app uses pip + has a requirements.txt file, then the No change in requirements detected, installing from cache message is shown here incorrectly:

output::step "No change in requirements detected, installing from cache"

This can be seen in the TODOs in these tests:

# TODO: The output shouldn't say "installing from cache", since it's not.
expect(clean_output(app.output)).to include(<<~OUTPUT)
remote: -----> Python app detected
remote: -----> Using Python 3.13 specified in .python-version
remote: -----> Python version has changed from #{LATEST_PYTHON_3_9} to #{LATEST_PYTHON_3_13}, clearing cache
remote: -----> No change in requirements detected, installing from cache

# TODO: The requirements output shouldn't say "installing from cache", since it's not.
expect(clean_output(app.output)).to include(<<~OUTPUT)
remote: -----> Python app detected
remote: -----> No Python version was specified. Using the same version as the last build: Python 3.12.3
remote: To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
remote:
remote: ! Warning: A Python security update is available!
remote: !
remote: ! Upgrade as soon as possible to: Python #{LATEST_PYTHON_3_12}
remote: ! See: https://devcenter.heroku.com/articles/python-runtimes
remote:
remote: -----> Stack has changed from heroku-22 to heroku-24, clearing cache
remote: -----> No change in requirements detected, installing from cache

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions