Unverified Commit dbcae9f9 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #258712 from jmbaur/coredns-fix-cross

coredns: Fix cross-compile
parents a3111be3 c10a1909
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ in buildGoModule rec {
  modBuildPhase = ''
    for plugin in ${builtins.toString (attrsToPlugins externalPlugins)}; do echo $plugin >> plugin.cfg; done
    for src in ${builtins.toString (attrsToSources externalPlugins)}; do go get $src; done
    go generate
    GOOS= GOARCH= go generate
    go mod vendor
  '';

@@ -46,7 +46,7 @@ in buildGoModule rec {
    chmod -R u+w vendor
    mv -t . vendor/go.{mod,sum} vendor/plugin.cfg

    go generate
    GOOS= GOARCH= go generate
  '';

  postPatch = ''