Code Monkey home page Code Monkey logo

Comments (5)

lovell avatar lovell commented on June 2, 2024 1

The integrity check logic was removed in v0.33.0 as part of #3750 so the "Integrity check failed" message will never be generated by v0.33.1. Please check any lockfiles or cached node_modules for previous versions.

from sharp.

MrAlex94 avatar MrAlex94 commented on June 2, 2024

Reverting to [email protected] seems to not have this issue; any ways I can help test what the issue might be? Should I raise with Cloudflare?

from sharp.

lovell avatar lovell commented on June 2, 2024

These logs looks like they are from v0.32.x. Support for Bun was added in v0.33.0 - please upgrade.

from sharp.

MrAlex94 avatar MrAlex94 commented on June 2, 2024

These logs looks like they are from v0.32.x. Support for Bun was added in v0.33.0 - please upgrade.

So an issue with Cloudflare then? The package was [email protected], which is why I reported the issue. It works when setting to [email protected] - if I upgrade again, same issue.

Edit: Seems to occur regardless of build cache being enabled or disabled.

from sharp.

MrAlex94 avatar MrAlex94 commented on June 2, 2024

OK, possible PEBKAC? The fix was to delete my existing bun.lockb and recreate it with bun install. Cloudflare Pages does bun install --frozen-lockfile by default, and I noticed when trying to test with npm, it would run that bun command first..and it worked! Pages uses Bun 1.0.1 by default, which reminded me of the release notes about changes to --frozen-lockfile in Bun 1.0.19.

At the same time I upgraded sharp from 0.32.6 to 0.33.1 I also went from Bun 1.0.181.0.21 in Pages (can set version with BUN_VERSION), but everything was working on my local computer, so didn't put the pieces together immediately.

I suppose a few things:

  • Pages should probably not run any install steps without the user defining them.
  • Bun 1.0.21 would not fail when running bun install --frozen-lockfile on macOS ARM64when there was no change to the lockfile; it seems to only fail on Linux x64 (the only other platform I can test, and the platform for Pages).
  • Bun versions prior to 1.0.19 would update the bun.lockb file when running bun install, after upgrading packages.

Will see if I have enough info to file an issue with Bun.

Thanks for the help!

from sharp.

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.