8000 Vendor dependencies to allow for self-contained builds by MarcPow · Pull Request #2495 · coredns/coredns · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Vendor dependencies to allow for self-contained builds #2495

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

Closed
wants to merge 1 commit into from
Closed

Vendor dependencies to allow for self-contained builds #2495

wants to merge 1 commit into from

Conversation

MarcPow
Copy link
@MarcPow MarcPow commented Jan 25, 2019

1. Why is this pull request needed and what does it do?

Consider vendoring dependencies.

I'll note that this suggestion has been rejected in the past, but I wanted to surface it again.

I'm relatively new to the world of Go, so it may be that there's a subtlety here of which I'm unaware, about which I'm happy to be educated.

If instead, perhaps, things have changed (and this is now acceptable), I'd love to see it merged.

2. Which issues (if any) are related?

#1523

3. Which documentation changes (if any) need to be made?

@corbot
Copy link
corbot bot commented Jan 25, 2019

Thank you for your contribution. I've just checked the OWNERS files to find a suitable reviewer. This search was successful and I've asked fturib (via /OWNERS) for a review.

If you have questions or suggestions for this bot, please file an issue against the miekg/dreck repository.

The bot understands the commands that are listed here.

@corbot corbot bot requested a review from fturib January 25, 2019 01:16
@miekg
Copy link
Member
miekg commented Jan 25, 2019 via email

@MarcPow
Copy link
Author
MarcPow commented Jan 25, 2019

[ Quoting notifications@github.com in "[coredns/coredns] Vendor dependenci..." ]

external plugin will fail to compile if we do this: @ # Not vendoring these, so external plugins compile, > avoiding: @ # cannot use c (type "github.com/mholt/caddy".Controller) as type @ # >"github.com/coredns/coredns/vendor/github.com/mholt/caddy".Controller like errors. so we can't. >Maybe gomodules can make this work.

Is there documentation flow on the external plugin compilation flow? Naively, I've been assuming: If "make coredns" works cleanly, then we should be good. But that's apparently not the case... Put another way, can you give me an example of an external plugin whose compilation will fail in this manner, so that I have something to use as a litmus test - if I wanted to experiment to Go modules for example?

I realize it's not your job to educate me - thanks for being willing to engage in discussion on this! :)

@miekg
Copy link
Member
miekg commented Jan 27, 2019

any external plugin will fail. See https://coredns.io/explugins/unbound/ for an example one, are coredns/example on github

@miekg miekg closed this Jan 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0