Skip to content

feat(rockcraft/pack): migrate to Node24 - #59

Merged
bepri merged 5 commits into
canonical:mainfrom
dariofaccin:feat/rockcraft-pack-node24
Jun 2, 2026
Merged

feat(rockcraft/pack): migrate to Node24#59
bepri merged 5 commits into
canonical:mainfrom
dariofaccin:feat/rockcraft-pack-node24

Conversation

@dariofaccin

Copy link
Copy Markdown
Contributor

This PR updates actions to support Node24.

  • fs.Stats(): constructor is now private
  • fs.Dirent (in particular readdir): TS uses the most specific overload available after spyOn resolution, which expects Dirent<NonSharedBuffer>[] and not string[] as in Node18.

@dariofaccin
dariofaccin force-pushed the feat/rockcraft-pack-node24 branch from a182cd4 to 74b566f Compare May 28, 2026 10:16

@alesancor1 alesancor1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me. thanks!

There are a couple of changes that are not strictly related to the node24 update (unused variables, object declarations), though really minor, so all good.

My only concern is regarding the modification of eslint rules. See below:

Comment thread .eslintrc.json
@bepri
bepri self-requested a review May 28, 2026 14:41
lczyk added a commit to lczyk/spread-bread that referenced this pull request Jun 2, 2026
swap the rocks build job's rockcraft-pack from canonical/craft-actions@main to
the fork branch in canonical/craft-actions#59 (node24 migration), to clear the
node20 deprecation warning. revert to canonical@main once that PR merges.

@lczyk lczyk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great. run the tests locally and confirmed all works fine. also tested it in a personal project and it works great there too. a couple of drive-bys but all justifiable and simple. after some investigation i concur with the "crazy typing of fs.promises.readdir()" and the decay to any is completely warranted imo

strong +1. we should really get this merged before github actions stop working...

@bepri bepri left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking this on! Always a fan of modernization.

@bepri bepri changed the title feat: migrate to Node24 feat(rockcraft/pack): migrate to Node24 Jun 2, 2026
@bepri
bepri merged commit a7cfd83 into canonical:main Jun 2, 2026
84 checks passed
@dariofaccin
dariofaccin deleted the feat/rockcraft-pack-node24 branch June 2, 2026 20:43
lczyk added a commit to lczyk/spread-bread that referenced this pull request Jun 2, 2026
node24 migration (canonical/craft-actions#59) merged upstream, so drop the
fork-branch trial and point back at canonical/craft-actions/rockcraft-pack@main.
lczyk added a commit to lczyk/spread-bread that referenced this pull request Jul 20, 2026
swap the rocks build job's rockcraft-pack from canonical/craft-actions@main to
the fork branch in canonical/craft-actions#59 (node24 migration), to clear the
node20 deprecation warning. revert to canonical@main once that PR merges.
lczyk added a commit to lczyk/spread-bread that referenced this pull request Jul 20, 2026
node24 migration (canonical/craft-actions#59) merged upstream, so drop the
fork-branch trial and point back at canonical/craft-actions/rockcraft-pack@main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants