Merge pull request #174618 from risicle/ris-coredns-darwin-fix
coredns: fix tests on darwin
This commit is contained in:
commit
4f6e9865dd
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,8 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "coredns";
|
||||
|
@ -20,6 +24,9 @@ buildGoModule rec {
|
|||
|
||||
substituteInPlace test/readme_test.go \
|
||||
--replace "TestReadme" "SkipReadme"
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
# loopback interface is lo0 on macos
|
||||
sed -E -i 's/\blo\b/lo0/' plugin/bind/setup_test.go
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue