Skip to content

Commit

Permalink
[PR #8140/d2ea8118 backport][3.9] Use NPM clean install and upgrade n…
Browse files Browse the repository at this point in the history
…ode to v18 (#8149)

**This is a backport of PR #8140 as merged into master
(d2ea811).**

Co-authored-by: Steve Repsher <[email protected]>
  • Loading branch information
patchback[bot] and steverep authored Feb 9, 2024
1 parent 2a5dc57 commit 9910f5f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ jobs:
uses: actions/[email protected]
id: cache
with:
key: llhttp-${{ hashFiles('vendor/llhttp/package.json', 'vendor/llhttp/src/**/*') }}
key: llhttp-${{ hashFiles('vendor/llhttp/package*.json', 'vendor/llhttp/src/**/*') }}
path: vendor/llhttp/build
- name: Setup NodeJS
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/setup-node@v4
with:
node-version: '14'
node-version: 18
- name: Generate llhttp sources
if: steps.cache.outputs.cache-hit != 'true'
run: |
Expand Down
1 change: 1 addition & 0 deletions CHANGES/8116.contrib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated CI and documentation to use NPM clean install and upgrade node to version 18 -- by :user:`steverep`.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ aiohttp/%.c: aiohttp/%.pyx $(call to-hash,$(CYS)) aiohttp/_find_header.c
cython -3 -o $@ $< -I aiohttp -Werror

vendor/llhttp/node_modules: vendor/llhttp/package.json
cd vendor/llhttp; npm install
cd vendor/llhttp; npm ci

.llhttp-gen: vendor/llhttp/node_modules
$(MAKE) -C vendor/llhttp generate
Expand Down
2 changes: 1 addition & 1 deletion vendor/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ newer release, add ``--remote``)::
Then build ``llhttp``::

cd vendor/llhttp/
npm install
npm ci
make

Then build our parser::
Expand Down

0 comments on commit 9910f5f

Please sign in to comment.