input-output-hk / daedalus

The open source cryptocurrency wallet for ada, built to grow with the community
https://daedaluswallet.io/
Apache License 2.0
1.24k stars 295 forks source link

[LW-10808] Update HW dependencies #3215

Closed tomislavhoracek closed 3 months ago

tomislavhoracek commented 3 months ago

This PR introduces:

Testing Checklist

QA Note: If you want to test it on preview, please use https://github.com/input-output-hk/daedalus/tree/todelete/lw-10808-cardano-node-9-with-hw-updates. It is a temp branch until we have the Michals update merged https://github.com/input-output-hk/daedalus/pull/3212


Review Checklist

Basics

Code Quality

Testing

After Review

tomislavhoracek commented 3 months ago

Awesome! 🎉

The "tests" check is failing, though:

error @ethereumjs/tx@5.3.0: The engine "node" is incompatible with this module. Expected version ">=18". Got "14.21.3"

Are we really using Node.js 14? I don’t think so 😕 Especially since Buildkite passed?

Thanks @michalrus that is something I wanted to ask as well. I see nodev18.12.1. To be honest, I think we are good

michalrus commented 3 months ago

Re: Netlify – given that:

  1. Netlify forces running yarn install as the very first step,
  2. Which fails because their machine doesn’t include libudev.h (sudo apt-get install libudev-dev),
  3. And you cannot run anything before their call to yarn install,
  4. And they don’t allow to run commands with sudo,
  5. And in our preinstall, the node_modules aren’t populated, so it's too early to unpack libudev-dev manually,
  6. And in our postinstall, it’s too late because yarn install already failed with missing libudev.h

… I really don’t know how to fix this.

Maybe a separate package.json which only builds storybook? Though they force yarn install from the root anyways, so it won’t work.

It feels like a really bad design decision on Netlify’s part, or I'm not seeing something.

Edit: asked them here.

michalrus commented 3 months ago

Netlify fixed in 4ce5d1f6628842a5f1af156a84dccc8985b8faa6 – had to use Homebrew :)