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
The program exits with code 1 and gives the following message:
Analize : root.yaml
> Problem : file not found './link.yaml' on 'root.yaml' at line 1.
Problem
The issue appears to be in helpers.js:91 with the usage of fs.lstatSync(file).isFile(), specifically, I do not think that lstat should be used. I do not think that a tool like yamlinc means to look at the link stats, but cares about the target file. I believe fs.statSync(file).isFile() is correct here.
The text was updated successfully, but these errors were encountered:
tgockel
added a commit
to tgockel/yamlinc
that referenced
this issue
Apr 18, 2019
This fixes issue javanile#20 -- where you get "file not found" errors when the
target of an `$include` is a symlink to a file. Use of `stat` means the
system will follow these symlinks instead of returning information about
the link itself.
If the target file of an
$include
is a symbolic link, the program fails to find the file.Steps
Environment
I made a clean environment of Ubuntu 18.04 with Docker for minimal testing (feel free to jump to "Recreation" if this isn't applicable).
Recreation
Expected Behavior
I would expect the output to look something like this:
Actual Behavior
The program exits with code 1 and gives the following message:
Problem
The issue appears to be in
helpers.js:91
with the usage offs.lstatSync(file).isFile()
, specifically, I do not think thatlstat
should be used. I do not think that a tool like yamlinc means to look at the link stats, but cares about the target file. I believefs.statSync(file).isFile()
is correct here.The text was updated successfully, but these errors were encountered: