Skip to content

mbed-cli cache does not notice that commits have disappeared for origin #455

@teetak01

Description

@teetak01

Defect: Minor
Component: mbed-cli cache

This is quite special case, but we noticed an issue with branches and git-history. I had a locally cached branch, which was force-pushed over in Github. This caused the issue that a lib-file pointing to now non-existant HASH stopped working for anyone who was using the component without caching, but on my machine it continued to work as it was always picking up that hash from local cache. Even if I re-cloned the whole application and redeployed from fresh, it was still picking up the local HASH without realizing that it does not exist in Git anymore. This of course caused some temporary headache until we realized that the cache was causing this. Disabling cache then correctly caused a deploy fail.

Should there be some cleanup/warning for this kind of changes? With development branches the git-history can get rewritten quite often.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions