MarketSquare / MarketSquare/robotframework-difflibrary

unrecognized option strip-trailing-cr

Open
#11 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
26
Forks
15
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect src/DiffLibrary/keywords.py at the linked line and reproduce the failure in the robotframework/rfdocker image, where BusyBox diff rejects --strip-trailing-cr. Define the option's behavior and verify that the library no longer errors on that image while retaining the intended diff capability.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.