Can't run diff2html-cli on linux docker container
wbo-yak opened this issue · 1 comments
wbo-yak commented
Step 0: Describe your environment
- OS: Docker debian/alpine/ubuntu
- diff2html version: 5.2.9
- Using diff2html-cli
- Extra flags: _
Step 1: Describe the problem:
Nothing seems to be generated from diff2html-cli command.
I have generated a git diff and executed the diff2html-cli command but nos logs and no html output
Steps to reproduce:
- run a docker container
docker run debian:latest Or alpine:latest Or ubuntu:latest
- install nodejs/npm and diff2html-cli
apt install -y npm
npm install -g diff2html-cli
-
Generate a diff from two git repos or two directories
-
execute
diff2html -i file -F pretty-diff.html -- my-diff.diff
diff example:
diff --git describe.c
index fabadb8,cc95eb0..4866510
--- a/describe.c
+++ b/describe.c
@@@ -98,20 -98,12 +98,20 @@@
return (a_date > b_date) ? -1 : (a_date == b_date) ? 0 : 1;
}
Observed Results:
- No logs, no html file generated.
- Testing on a a bash with windows it works correctly but when testing in a container, it does not.
Expected Results:
- Expecting an html report.
What am i missing ?
wbo-yak commented
Not an issue actually, a misunderstanding in parameters caused confusion. The previous code works correctly on all platforms