Comments (16)
from overreacted.io.
I guess we can close this, hasn't happened since. It's still deeply confusing that .cache
needs to be cleared before a deploy.
from overreacted.io.
I’ll take a look—thanks for the info!
from overreacted.io.
This was not fixed by #46.
from overreacted.io.
This is really embarrassing. Why does it keep happening?
from overreacted.io.
@gaearon sorry about that! Do you have an example post or posts where this is happening?
Does it only seem to happen on the built site intermittently, or is it something you can reproduce pretty reliably?
from overreacted.io.
It happens on every deploy, in every post with images. (ec340fe is an example)
from overreacted.io.
Seems like bumping deps again (fece90f) may have resolved it. I'll close again for now but if it resurfaces we'll know it's intermittent.
from overreacted.io.
It happened agaaaaain
from overreacted.io.
Clearing node_modules
and cache and rebuilding seems to fix it.
from overreacted.io.
So sorry you're seeing this @gaearon
We cache a bunch of stuff in the .cache
directory and building (based on your package.json) runs "build": "rm -rf public && gatsby build" which deletes public
and not .cache
from overreacted.io.
Sending you a PR in a minute
from overreacted.io.
Right. I thought it's safe to leave the cache but I'll add a thing that clears it.
from overreacted.io.
Perfect
from overreacted.io.
So Netlify's build image at https://github.com/netlify/build-image/blob/65e07189f42d3cc797f1dfe86e197b914a6a5c85/run-build-functions.sh#L41 caches .cache
That's why some builds were failing (mismatch of public and .cache) and some weren't (presumably when you forced a build without cache)
from overreacted.io.
Never mind, that's .cache
in the home directory
from overreacted.io.
Related Issues (20)
- [algebraic-effects-for-the-rest-of-us] unison
- Translate to Hungarian: Things I Don’t Know as of 2018 HOT 1
- Potential bug in “official” useInterval example HOT 7
- feature request: search by title and tags
- How to get custom colors in pre and code tags? HOT 1
- Link to "npm audit is a security theater" bug report
- Bug: dark-mode implementation
- [How Are Function Components Different from Classes?]Puzzled thing about "this"
- Spanish translations HOT 1
- Link broken HOT 1
- Russian Translation
- Using a get from lodash
- Potential typo in "Before You memo()" HOT 1
- Rewrite the blog
- a little announcement HOT 1
- Need help: compressing images HOT 15
- Adding the Subscribe Feature HOT 1
- Feature - Adding the Subscribe Feature HOT 1
- Is there an RSS feed? HOT 1
- Bug: Error displaying images in posts HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from overreacted.io.