Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5844565

Browse filesBrowse files
richardlauruyadorno
authored andcommitted
tools: fix c-ares updater script for Node.js 18
GitHub Actions is by default running the tools updater workflow with Node.js 18. Avoid use of `import.meta.dirname`, which wasn't backported to Node.js 18. PR-URL: #55717 Refs: #55445 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 940d22f commit 5844565
Copy full SHA for 5844565

1 file changed

+2-1Lines changed: 2 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/dep_updaters/update-c-ares.mjs‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-c-ares.mjs
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// Synchronize the sources for our c-ares gyp file from c-ares' Makefiles.
22
import { readFileSync, writeFileSync } from 'node:fs';
33
import { join } from 'node:path';
4+
import { fileURLToPath } from 'node:url';
45

5-
const srcroot = join(import.meta.dirname, '..', '..');
6+
const srcroot = fileURLToPath(new URL('../../', import.meta.url));
67
const options = { encoding: 'utf8' };
78

89
// Extract list of sources from the gyp file.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.