Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coredns: 005 -> 010 #28709

Closed
wants to merge 3 commits into from
Closed

coredns: 005 -> 010 #28709

wants to merge 3 commits into from

Conversation

rushmorem
Copy link
Contributor

Motivation for this change
Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@rushmorem, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rtreffer to be a potential reviewer.

};

goDeps = ./deps.nix;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the build fails with:

go/src/github.com/coredns/coredns/core/dnsserver/config.go:8:2: cannot find package "github.com/mholt/caddy" in any of:
        /tmp/nix-build-coredns-010.drv-0/go/src/github.com/coredns/coredns/vendor/github.com/mholt/caddy (vendor tree)
        /nix/store/dq8ck03naq26sfkz5q1ls44fpva4b00f-go-1.8.3/share/go/src/github.com/mholt/caddy (from $GOROOT)
        /tmp/nix-build-coredns-010.drv-0/go/src/github.com/mholt/caddy (from $GOPATH)
        /nix/store/az356x1kp2gf6nglm479vkyyjvg5l0wx-govers-20150109-3b5f175/share/go/src/github.com/mholt/caddy
go/src/github.com/coredns/coredns/core/dnsserver/register.go:12:2: cannot find package "github.com/mholt/caddy/caddyfile" in any of:
        /tmp/nix-build-coredns-010.drv-0/go/src/github.com/coredns/coredns/vendor/github.com/mholt/caddy/caddyfile (vendor tree)
        /nix/store/dq8ck03naq26sfkz5q1ls44fpva4b00f-go-1.8.3/share/go/src/github.com/mholt/caddy/caddyfile (from $GOROOT)
        /tmp/nix-build-coredns-010.drv-0/go/src/github.com/mholt/caddy/caddyfile (from $GOPATH)
        /nix/store/az356x1kp2gf6nglm479vkyyjvg5l0wx-govers-20150109-3b5f175/share/go/src/github.com/mholt/caddy/caddyfile
go/src/github.com/coredns/coredns/core/zmiddleware.go:32:2: cannot find package "github.com/mholt/caddy/startupshutdown" in any of:
        /tmp/nix-build-coredns-010.drv-0/go/src/github.com/coredns/coredns/vendor/github.com/mholt/caddy/startupshutdown (vendor tree)
        /nix/store/dq8ck03naq26sfkz5q1ls44fpva4b00f-go-1.8.3/share/go/src/github.com/mholt/caddy/startupshutdown (from $GOROOT)
        /tmp/nix-build-coredns-010.drv-0/go/src/github.com/mholt/caddy/startupshutdown (from $GOPATH)
        /nix/store/az356x1kp2gf6nglm479vkyyjvg5l0wx-govers-20150109-3b5f175/share/go/src/github.com/mholt/caddy/startupshutdown
builder for ‘/nix/store/dq7g3hb5hszqgd1cmj4jll0fr93dpvnb-coredns-010.drv’ failed with exit code 1

Copy link
Member

@Mic92 Mic92 Aug 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you probably want to take a look at go2nix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the build fails...
you probably want to take a look at go2nix.

Yeah, I know. It's still WIP. When I decided to update this package, I noticed that it's now vendoring it's dependencies so I deleted deps.nix and removed goDeps only to discover that it's ignoring some dependencies when I tried to build. I don't have time to take care of this at the moment so I will let this sit for now.

@andir
Copy link
Member

andir commented Dec 7, 2017

@rushmorem are you still planning to working on this?

There are a few newer versions available as well.


Since a few days the current stable and unstable version (both 005) fail to build since the upstream tag seems to have been changed/updated:

output path ‘/nix/store/vmddnwl6109inzmx8l45ddx92gi57bdl-source’ has r:sha256 hash ‘15q8l4apspaw1xbbb9j1d8s2cc5zrgycan6iq597ga9m0vyf7wiw’ when ‘11wvy3xp9in5ny6h7hp24dq6asc013vrwc6bqiky83dlzasjwkf6’ was expected

(nix-build --no-out-link '<nixpkgs>' -A coredns)

It would be great to either update, remove or at least resolve this issue 😃

(cc'ing the other maintainer @rtreffer)

@rushmorem rushmorem closed this Dec 8, 2017
@rushmorem rushmorem deleted the coredns branch December 8, 2017 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants