Merge pull request #2646 from sankur-codes/go-diff-MacOS-fix

Added fix for diff issue in MacOS
This commit is contained in:
Ben Vesel 2023-01-30 09:39:18 -05:00 коммит произвёл GitHub
Родитель e5677d4b95 b672f00530
Коммит 527c109950
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -60,6 +60,9 @@ Install the `libgpgme-dev` package.
# Install gpgme
brew install gpgme
# Install diffutils to avoid errors during test runs
brew install diffutils
```
1. Modify your `~/.zshrc` (or `~/.bashrc` for Bash): this prepends `PATH` with GNU Utils paths;

Просмотреть файл

@ -8,6 +8,8 @@ To run RP unit tests:
make test-go
```
In case of MacOS, the go-diff module creates [issue](https://github.com/golangci/golangci-lint/issues/3087) making the test fail. Until a new release of the module with the [fix](https://github.com/sourcegraph/go-diff/pull/65) is available, an easy workaround to mitigate the issue is to install diffutils using `brew install diffutils`
To Run Go tests with coverage:
```bash