Merge pull request #174618 from risicle/ris-coredns-darwin-fix

coredns: fix tests on darwin
This commit is contained in:
Robert Scott 2022-05-26 00:20:24 +01:00 committed by GitHub
commit 4f6e9865dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; {