Code Monkey home page Code Monkey logo

Comments (16)

gaearon avatar gaearon commented on June 2, 2024 1

7e00945?

from overreacted.io.

gaearon avatar gaearon commented on June 2, 2024 1

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.

DSchau avatar DSchau commented on June 2, 2024

I’ll take a look—thanks for the info!

from overreacted.io.

gaearon avatar gaearon commented on June 2, 2024

This was not fixed by #46.

from overreacted.io.

gaearon avatar gaearon commented on June 2, 2024

This is really embarrassing. Why does it keep happening?

from overreacted.io.

DSchau avatar DSchau commented on June 2, 2024

@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.

gaearon avatar gaearon commented on June 2, 2024

It happens on every deploy, in every post with images. (ec340fe is an example)

from overreacted.io.

gaearon avatar gaearon commented on June 2, 2024

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.

gaearon avatar gaearon commented on June 2, 2024

It happened agaaaaain

from overreacted.io.

gaearon avatar gaearon commented on June 2, 2024

Clearing node_modules and cache and rebuilding seems to fix it.

from overreacted.io.

sidharthachatterjee avatar sidharthachatterjee commented on June 2, 2024

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.

sidharthachatterjee avatar sidharthachatterjee commented on June 2, 2024

Sending you a PR in a minute

from overreacted.io.

gaearon avatar gaearon commented on June 2, 2024

Right. I thought it's safe to leave the cache but I'll add a thing that clears it.

from overreacted.io.

sidharthachatterjee avatar sidharthachatterjee commented on June 2, 2024

Perfect

from overreacted.io.

sidharthachatterjee avatar sidharthachatterjee commented on June 2, 2024

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.

sidharthachatterjee avatar sidharthachatterjee commented on June 2, 2024

Never mind, that's .cache in the home directory

from overreacted.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.