whatwg / html-build

Build scripts for https://github.com/whatwg/html
Other
62 stars 62 forks source link

`.cache` folder is not created by `build.sh` #260

Closed surma closed 3 years ago

surma commented 3 years ago

I have a fresh clone and I am follwing the instructions. Running ./build.sh --docker fails with:

docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist:
/Users/surma/src/github.com/whatwg/html-build/.cache.

Creating .cache manually fixes the problem. Might be nice if the script did that for me.

domenic commented 3 years ago

Fascinating. This must be a Windows vs. Mac docker difference? I deleted my .cache folder and ran that exact command and it was created with no problem.

Would you be able to work on a pull request for this, since I can't really test it myself? I think moving clearCacheIfNecessary up to before the if [[ $USE_DOCKER == "true" ]] line would work.