cncf / filterable-landscape

Interactive version of the Cloud Native Landscape
https://landscape.cncf.io/
Apache License 2.0
9 stars 12 forks source link

Support overwriting images with hosted version #289

Closed dankohn closed 6 years ago

dankohn commented 6 years ago

When we update a local image (e.g., 'src/hosted_logos/apex.svg'), there is no way to overwrite the cached version ('src/logos/apex.svg') except to manually delete the cached version and then run yarn fetch. That's what I did for apex.svg here: https://github.com/cncf/filterable-landscape/commit/56d8ce3a1f041c4a4604e0889d556a61916dda01

Can we please add a yarn update-images that copies every image out of src/hosted_logos into src/logos. That is, we need a way to invalidate the image cache for locally hosted logos, but without requiring the re-fetching of remote ones.

AndreyKozlov1984 commented 6 years ago

It does not work this way. The image in src/logos is preprocessed. The solution is to add hash to each image_entry and compare it for locally stored images