robotframework-difflibrary icon indicating copy to clipboard operation
robotframework-difflibrary copied to clipboard

unrecognized option strip-trailing-cr

Open JulienBe opened this issue 6 years ago • 2 comments

https://github.com/bulkan/robotframework-difflibrary/blob/b4fc3b7e12b5bc630cf763b95e34732ad59fb4af/src/DiffLibrary/keywords.py#L30

It's causing an issue with the robotframework/rfdocker docker image

diff: unrecognized option: strip-trailing-cr
BusyBox v1.28.4 (2018-12-06 15:13:21 UTC) multi-call binary.

Maybe a flag to make it optional ?

As a dirty fix RUN sed -i "s/diff --strip-trailing-cr/diff/" /usr/local/lib/python3.6/site-packages/DiffLibrary/keywords.py did the trick

JulienBe avatar Jun 05 '19 14:06 JulienBe

Same problem starting with version 3.5.0 of the ppodgorsek/docker-robot-framework Docker image. That maintainer also switched to Alpine Linux. Above mentioned work-around now needs python3.7 in the path instead, but for less dependency I’d recommend:

RUN sed -i "s/diff --strip-trailing-cr/diff/" /usr/local/lib/python3.*/site-packages/DiffLibrary/keywords.py

vovtz avatar Apr 02 '20 11:04 vovtz

Ahh sure, I haven't touched this library in years. I'm happy to add either of you as collaborators?

bulkan avatar Apr 03 '20 09:04 bulkan