src: add an option to make compile cache path relative by Aditi-1400 · Pull Request #58797 · nodejs/node

@nodejs-github-bot added c++

Issues and PRs that require attention from people who are familiar with C++.

lib / src

Issues and PRs related to general changes in the lib or src directory.

needs-ci

PRs that need a full CI run.

labels

Jun 23, 2025

joyeecheung

@mcollina mcollina added the semver-minor

PRs that contain new features and should be released in the next minor version.

label

Jul 4, 2025

jasnell

joyeecheung

jasnell

jasnell

jasnell

jasnell

jasnell

joyeecheung

jasnell

jasnell

jasnell

jasnell

jasnell

jasnell

jasnell

targos pushed a commit that referenced this pull request

Sep 12, 2025
Adds an option (NODE_COMPILE_CACHE_PORTABLE) for
the built-in compile cache to encode the hashes with
relative file paths. On enabling the option,
the source directory along with cache directory can be
bundled and moved, and the cache continues to work.

When enabled, paths encoded in hash are relative to
compile cache directory.

PR-URL: #58797
Fixes: #58755
Refs: #52696
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>

@joyeecheung joyeecheung added dont-land-on-v24.x

PRs that should not land on the v24.x-staging branch and should not be released in v24.x.

dont-land-on-v25.x

PRs that should not land on the v25.x-staging branch and should not be released in v25.x.

labels

Sep 18, 2025

joyeecheung

nodejs-github-bot added a commit that referenced this pull request

Sep 24, 2025
Notable changes:

http:
  * (SEMVER-MINOR) add shouldUpgradeCallback to let servers control HTTP upgrades (Tim Perry) #59824
sqlite:
  * (SEMVER-MINOR) cleanup ERM support and export Session class (James M Snell) #58378
  * (SEMVER-MINOR) add tagged template (0hm☘️) #58748
src:
  * (SEMVER-MINOR) add an option to make compile cache portable (Aditi) #58797
worker:
  * (SEMVER-MINOR) add heap profile API (theanarkh) #59846

PR-URL: #59997

@targos targos removed dont-land-on-v24.x

PRs that should not land on the v24.x-staging branch and should not be released in v24.x.

dont-land-on-v25.x

PRs that should not land on the v25.x-staging branch and should not be released in v25.x.

labels

Oct 10, 2025

aduh95 pushed a commit that referenced this pull request

Oct 31, 2025
Adds an option (NODE_COMPILE_CACHE_PORTABLE) for
the built-in compile cache to encode the hashes with
relative file paths. On enabling the option,
the source directory along with cache directory can be
bundled and moved, and the cache continues to work.

When enabled, paths encoded in hash are relative to
compile cache directory.

PR-URL: #58797
Fixes: #58755
Refs: #52696
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>

nodejs-github-bot added a commit that referenced this pull request

Nov 7, 2025
Notable changes:

http:
  * (SEMVER-MINOR) add optimizeEmptyRequests server option (Rafael Gonzaga) #59778
src:
  * (SEMVER-MINOR) add watch config namespace (Marco Ippolito) #60178
  * (SEMVER-MINOR) add an option to make compile cache portable (Aditi) #58797
v8:
  * (SEMVER-MINOR) add cpu profile (theanarkh) #59807

PR-URL: #60615

targos pushed a commit that referenced this pull request

Nov 18, 2025
Adds an option (NODE_COMPILE_CACHE_PORTABLE) for
the built-in compile cache to encode the hashes with
relative file paths. On enabling the option,
the source directory along with cache directory can be
bundled and moved, and the cache continues to work.

When enabled, paths encoded in hash are relative to
compile cache directory.

PR-URL: #58797
Fixes: #58755
Refs: #52696
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>

nodejs-github-bot added a commit that referenced this pull request

Dec 9, 2025
Notable changes:

http:
  * (SEMVER-MINOR) add optimizeEmptyRequests server option (Rafael Gonzaga) #59778
lib:
  * (SEMVER-MINOR) add options to util.deprecate (Rafael Gonzaga) #59982
module:
  * (SEMVER-MINOR) mark type stripping as stable (Marco Ippolito) #60600
node-api:
  * (SEMVER-MINOR) add napi_create_object_with_properties (Miguel Marcondes Filho) #59953
sqlite:
  * (SEMVER-MINOR) allow setting defensive flag (Bart Louwers) #60217
src:
  * (SEMVER-MINOR) add watch config namespace (Marco Ippolito) #60178
  * (SEMVER-MINOR) add an option to make compile cache portable (Aditi) #58797
src,permission:
  * (SEMVER-MINOR) add --allow-inspector ability (Rafael Gonzaga) #59711
v8:
  * (SEMVER-MINOR) add cpu profile (theanarkh) #59807

PR-URL: #61001

targos pushed a commit that referenced this pull request

Dec 9, 2025
Notable changes:

http:
  * (SEMVER-MINOR) add optimizeEmptyRequests server option (Rafael Gonzaga) #59778
lib:
  * (SEMVER-MINOR) add options to util.deprecate (Rafael Gonzaga) #59982
module:
  * (SEMVER-MINOR) mark type stripping as stable (Marco Ippolito) #60600
node-api:
  * (SEMVER-MINOR) add napi_create_object_with_properties (Miguel Marcondes Filho) #59953
sqlite:
  * (SEMVER-MINOR) allow setting defensive flag (Bart Louwers) #60217
src:
  * (SEMVER-MINOR) add watch config namespace (Marco Ippolito) #60178
  * (SEMVER-MINOR) add an option to make compile cache portable (Aditi) #58797
src,permission:
  * (SEMVER-MINOR) add --allow-inspector ability (Rafael Gonzaga) #59711
v8:
  * (SEMVER-MINOR) add cpu profile (theanarkh) #59807

PR-URL: #61001

targos pushed a commit that referenced this pull request

Dec 10, 2025
Notable changes:

http:
  * (SEMVER-MINOR) add optimizeEmptyRequests server option (Rafael Gonzaga) #59778
lib:
  * (SEMVER-MINOR) add options to util.deprecate (Rafael Gonzaga) #59982
module:
  * (SEMVER-MINOR) mark type stripping as stable (Marco Ippolito) #60600
node-api:
  * (SEMVER-MINOR) add napi_create_object_with_properties (Miguel Marcondes Filho) #59953
sqlite:
  * (SEMVER-MINOR) allow setting defensive flag (Bart Louwers) #60217
src:
  * (SEMVER-MINOR) add watch config namespace (Marco Ippolito) #60178
  * (SEMVER-MINOR) add an option to make compile cache portable (Aditi) #58797
src,permission:
  * (SEMVER-MINOR) add --allow-inspector ability (Rafael Gonzaga) #59711
v8:
  * (SEMVER-MINOR) add cpu profile (theanarkh) #59807

PR-URL: #61001

This was referenced

Jan 3, 2026

islandryu pushed a commit to islandryu/node that referenced this pull request

Jan 25, 2026
Notable changes:

http:
  * (SEMVER-MINOR) add optimizeEmptyRequests server option (Rafael Gonzaga) nodejs#59778
lib:
  * (SEMVER-MINOR) add options to util.deprecate (Rafael Gonzaga) nodejs#59982
module:
  * (SEMVER-MINOR) mark type stripping as stable (Marco Ippolito) nodejs#60600
node-api:
  * (SEMVER-MINOR) add napi_create_object_with_properties (Miguel Marcondes Filho) nodejs#59953
sqlite:
  * (SEMVER-MINOR) allow setting defensive flag (Bart Louwers) nodejs#60217
src:
  * (SEMVER-MINOR) add watch config namespace (Marco Ippolito) nodejs#60178
  * (SEMVER-MINOR) add an option to make compile cache portable (Aditi) nodejs#58797
src,permission:
  * (SEMVER-MINOR) add --allow-inspector ability (Rafael Gonzaga) nodejs#59711
v8:
  * (SEMVER-MINOR) add cpu profile (theanarkh) nodejs#59807

PR-URL: nodejs#61001