You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works just fine on local development and inside a github action, but CodeBuild chokes. After some tinkering, setting NODE_CONFIG_DIR=../../config fixed the build so it's clearly an issue with the symlink approach - looking trough the code I am mystified by the ENOTDIR thrown by the readFileSync on config.js:832...
Please tell us about your environment:
node-config version: ^3.3.11
node-version: v20.11.1
NODE_ENV=development (explicitly set in buildspec)
I do not have a runtime.json anywhere in my project
Other information
I am aware this is a problem in my setup (AWS CodeBuild!), not a problem in node-config, but posting this in the hope someone has seen this and knows why the symlink is broken on this particular environment (CodeBuild on some flavour of Amazon Linux).
Please feel free to close this if you're as mystified as I am :)
The text was updated successfully, but these errors were encountered:
mvhenten
changed the title
[BUG] Here's precisely how it doesn't work.
[BUG] Encoungering an unexpected ENOTDIR while trying to open non-existing runtime.json
Apr 24, 2024
Describe the bug
I'm running an
npm build
inside npm workspace on AWS codebuild resulting in a rather unexpectedENOTDIR
:The repo is organized with each package symlinking the config folder in root:
This works just fine on local development and inside a github action, but CodeBuild chokes. After some tinkering, setting
NODE_CONFIG_DIR=../../config
fixed the build so it's clearly an issue with the symlink approach - looking trough the code I am mystified by theENOTDIR
thrown by thereadFileSync
onconfig.js:832
...Please tell us about your environment:
Other information
I am aware this is a problem in my setup (AWS CodeBuild!), not a problem in node-config, but posting this in the hope someone has seen this and knows why the symlink is broken on this particular environment (CodeBuild on some flavour of Amazon Linux).
Please feel free to close this if you're as mystified as I am :)
The text was updated successfully, but these errors were encountered: