зеркало из https://github.com/Azure/ARO-RP.git
Merge pull request #2646 from sankur-codes/go-diff-MacOS-fix
Added fix for diff issue in MacOS
This commit is contained in:
Коммит
527c109950
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче