-
Notifications
You must be signed in to change notification settings - Fork 239
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
The package cannot be vendored with vndr
(regression in #137)
#139
Comments
cc @Zyqsempai @LK4D4 |
Shouldn't those upstream packages use a |
Seems they intentionally chose not to use subdir coreos/go-systemd#307 (comment) |
Yeah; they'd still have to update import paths with each release though. I guess go mod is gonna be a pain whichever way. Curious though; was it a deliberate choice to use both v1 and v5 of the Line 31 in fe68974
Also wondering if moving (containerd) to go.mod (and using the |
Kubernetes didn't bump major |
Does kubernetes actually use SemVer, or only "fake SemVer for the sake of go modules?" (as many packages) |
Support vendoring github.com/foo/bar/v42 like the following: `foo.go`: ```go package foo import ( "github.com/coreos/go-systemd/v22/dbus" ) func Foo() (*dbus.Conn, error) { return dbus.New() } ``` `vendor.conf`: ``` github.com/coreos/go-systemd/v22 v22.0.0 github.com/godbus/dbus/v5 v5.0.3 ``` Now `vndr` checks out the contents of `github.com/coreos/[email protected]` repo into the `./vendor/github.com/coreos/go-systemd/v22` directory. Note that `vndr` does not verify the actual version number written in `go.mod`. So `vndr github.com/coreos/go-systemd/v23 v22.0.0` would vendor v22, not v23. Fix containerd/cgroups#139 Signed-off-by: Akihiro Suda <[email protected]>
Support vendoring github.com/foo/bar/v42 like the following: `foo.go`: ```go package foo import ( "github.com/coreos/go-systemd/v22/dbus" ) func Foo() (*dbus.Conn, error) { return dbus.New() } ``` `vendor.conf`: ``` github.com/coreos/go-systemd/v22 v22.0.0 github.com/godbus/dbus/v5 v5.0.3 ``` Now `vndr` checks out the contents of `github.com/coreos/[email protected]` repo into the `./vendor/github.com/coreos/go-systemd/v22` directory. Note that `vndr` does not verify the actual version number written in `go.mod`. So `vndr github.com/coreos/go-systemd/v23 v22.0.0` would vendor v22, not v23. Fix containerd/cgroups#139 Signed-off-by: Akihiro Suda <[email protected]>
Fix for vndr: LK4D4/vndr#87 |
Support vendoring `github.com/coreos/go-systemd/v22` as follows: `foo.go`: ```go package foo import ( "github.com/coreos/go-systemd/v22/dbus" ) func Foo() (*dbus.Conn, error) { return dbus.New() } ``` `vendor.conf`: ``` github.com/coreos/go-systemd/v22 v22.0.0 github.com/godbus/dbus/v5 v5.0.3 ``` Now `vndr` checks out the contents of `github.com/coreos/[email protected]` repo into the `./vendor/github.com/coreos/go-systemd/v22` directory. Note that `vndr` does not verify the actual version number written in `go.mod`. So `vndr github.com/coreos/go-systemd/v23 v22.0.0` would vendor v22, not v23. Fix containerd/cgroups#139 Signed-off-by: Akihiro Suda <[email protected]>
🤗 LOL literally just now opened vndr in my IDE to see if I could fix it there 😂 |
Support vendoring `github.com/coreos/go-systemd/v22` as follows: `foo.go`: ```go package foo import ( "github.com/coreos/go-systemd/v22/dbus" ) func Foo() (*dbus.Conn, error) { return dbus.New() } ``` `vendor.conf`: ``` github.com/coreos/go-systemd/v22 v22.0.0 github.com/godbus/dbus/v5 v5.0.3 ``` Now `vndr` checks out the contents of `github.com/coreos/[email protected]` repo into the `./vendor/github.com/coreos/go-systemd/v22` directory. Note that `vndr` does not verify the actual version number written in `go.mod`. So `vndr github.com/coreos/go-systemd/v23 v22.0.0` would vendor v22, not v23. Fix containerd/cgroups#139 Signed-off-by: Akihiro Suda <[email protected]>
This was fixed in vndr v0.1.0 |
Note: now vndr >= v0.10 is required (containerd/cgroups#139) Signed-off-by: Akihiro Suda <[email protected]>
Same as e1221e6 Note: now vndr >= v0.10 is required (containerd/cgroups#139) Signed-off-by: Davanum Srinivas <[email protected]>
Note: now vndr >= v0.10 is required (containerd/cgroups#139) Signed-off-by: Akihiro Suda <[email protected]>
vndr
omits the go-systemd package whengithub.aaakk.us.kg/coreos/go-systemd
is specified invendor.conf
, due to the regression in #137.vendor.conf
:vndr
output:If
github.com/coreos/go-systemd/v22
is specified invendor.conf
instead,vndr
fails as follows:vndr
version: LK4D4/vndr@d87a917The text was updated successfully, but these errors were encountered: