-
Notifications
You must be signed in to change notification settings - Fork 667
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
*: remove vendoring #528
*: remove vendoring #528
Conversation
specs-go acts as a package. No need to have vendoring in here as it would just cause major pain to people using the specs Go library. Signed-off-by: Antonio Murdaca <runcom@redhat.com>
lets see. We just added it in #486 |
Yeah. Honestly I'd rather just move the code from that repo in-tree here.
Failing that, can we type alias, does that trick actually work?
…On 25 January 2017 at 16:36, Vincent Batts ***@***.***> wrote:
lets see. We just added it in #486
<#486>
There is something nice about the posterity of having the precise source
used for the spec provided in the release tarball. Though these compilation
issues due to it being in the "vendor/" directory are troublesome.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#528 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACewN1SKvFL9O_gMl2Ed8daPhPLMQsNRks5rV2v9gaJpZM4LtiQ0>
.
|
this would be nice probably |
Or even just |
That doesn't solve the issue of vendored deps being used in exported
interfaces
Vincent Batts <notifications@github.com> schrieb am Mi., 25. Jan. 2017,
19:16:
… Or even just mv ./vendor/ ./_deps. It's part of this golang vendor
experiment. The path resolution assumes long path available is the choice,
just not having this stashed code in a directory named "vendor" would fix
this issue
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#528 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACewN10aqGynaJ6Rmv5ZO3Nuux-tnBvIks5rV5F9gaJpZM4LtiQ0>
.
|
Is this considered not best practice? Are we not supposed to vendored types in exported types? |
Current Idea is to move the |
Due to the new vendoring logic in the golang compiler it can cause issues for projects that import a package that has vendored a package that is used locally. See containers/image#223 This change moves the vendored sources to the package that uses them, rather than for the whole project. Also is explictly is not vendoring code repos from "github.com/opencontainers/". For now we'll consider these non-remote. Though versioning may likely be future concern. Fixes opencontainers#527 Obsoletes opencontainers#528 Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
(referring to e.g.
Basically, exported vendored types are only usable as return values which are immediately consumed. |
as our repo is effectively only library, then this is a best option. LGTM This may need to be included in the RC4 (#537) |
Gah, no like this. Now we provide NO guidance for downstream consumers for what they should use? Go is a mess. |
I think that, while it is a massive hack, https://gopkg.in/ is the only sane way of handling these sorts of problems (though I don't know how they've handed the whole |
Fix #527
specs-go acts as a package. No need to have vendoring in here as it
would just cause major pain to people using the specs Go library.
Signed-off-by: Antonio Murdaca runcom@redhat.com