Removed assets in Figma are not removing in GitHub
Gabriel Cousin
Hey!
Our design team recently renamed some assets and we're facing the following situation:
- before renaming, the assets have been synced from Figma through Specify to GitHub
- after the renaming task, Specify added a renamed copy but is not removing the previous assets
I don't know if that's expected or if I'm missing something though.
If that's helping, we agreed that anything created by Specify in our GitHub repo is not supposed to be edited by ourselves (ie the assets folders is only collecting items from Specify)
Thanks!
Louis Chenais
Hi Gabriel,
Thanks for your feedback!
This is not a bug. This is by design. For now, when pulling assets from Specify, Specify won't delete any data in your destinations. Whether in in local directories through the Specify CLI or in GitHub repositories through our GitHub app.
We've been thinking about adding a
prune
property in the Specify config to empty a list of folders before pulling design data from Specify.From your view, what would be the best experience to have assets folders synced with Specify?
Thanks in advance,
Louis
G
Gabriel Cousin
Louis Chenais:
Gotcha!
A prune option is likely to do the trick for that case.
From my point of view and especially for assets, I would expect Specify to guarantee that the destination and the source are always in sync (which probably means to clear the folder before syncing).
In the team, we shared a kind of golden rule which is about not editing file and folders coming from Specify manually.
Thanks!
Dominik Mandarić
Gabriel Cousin: In our case, we created a script that will remove any assets that are no longer in Figma!