I want to know if it is possible to force a full rebuild of a huggingface space without committing any changes to the repository.
The use case is I would like to pip install a development package from a github repository, and if there is a bug fix in the github repository, I would like to trigger a build of the space to get the latest package.
In Space settings, you can find “Factory reboot this space”. This will build your space again without using cached requirements. Is this what you want?
I have tried doing that, but even though the information for Factory reboot says it does not use the cached version of requirements, the build logs show that the caches are being used, so it does not get the latest version for the package from Github.
Step 18/30 : COPY requirements.txt $HOME/app/requirements.txt
---> Using cache
---> 02abf4bb48b9
Step 19/30 : RUN pip install -r requirements.txt
---> Using cache
---> bce71515be6d
Having the same issue with both restart and Factory Reset not fully rebuilding the Space (trying to change default Python version to 3.11 for a project), when rebuilding, most things will change however the 3.10 is stubborn and pulling from a docker cache that I cannot seem to rebuild.