You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #25 we have added Icons to InfraMap, this icons are compiled into the binary but for DOT Printer those icons have to be on the FileSystem.
What we are doing now is store them into $XDG_CACHE_HOME/inframa/assets/{provider} when we need to diplay them (not all of them, just the ones that are needed for the Graph). But if for any reason we change the Icons to display new ones with the same Name they'll never be updated.
We should find a way to know that the Icon that it's in $XDG_CACHE_HOME is on the last version. Some solutions could be:
Compare content: If it's not the same replace
Compare hashes: If it's not the same replace
Have a global version of the Icons: As it's easy to write them to the Cache we could have a general version for the Icons and write it to the Cache (like a Manifest). And if the icons change we generate a new Manifest and if they are different we drop all of them (we do not expect to change Icons that often)
Any others?
The text was updated successfully, but these errors were encountered:
With #25 we have added Icons to InfraMap, this icons are compiled into the binary but for DOT Printer those icons have to be on the FileSystem.
What we are doing now is store them into
$XDG_CACHE_HOME/inframa/assets/{provider}
when we need to diplay them (not all of them, just the ones that are needed for the Graph). But if for any reason we change the Icons to display new ones with the same Name they'll never be updated.We should find a way to know that the Icon that it's in
$XDG_CACHE_HOME
is on the last version. Some solutions could be:The text was updated successfully, but these errors were encountered: