Open Ben131-Go opened 1 year ago
Closing because it looks like bot reply. Please feel free to reopen it if it is mistake.
It seems to relate to issue https://github.com/urfave/cli/issues/1092. I'm just giving a kind reminder entirely from the perspective of dependency analysis. It doesn't necessarily mean it will cause dependency issues to your project at now, but it might be better to update to a new fixed version of urfave/cli
, say [v1.22.6 - v1.22.12]. Overall, it depends on your choice and there is nothing particularly serious.
@Ben131-Go Thanks for the comment. I reopen it and fix it later.
Dependency line:
github.com/fuweid/embedshim --> github.com/containerd/containerd --> github.com/urfave/cli
github.com/containerd/containerd v1.5.13 --> github.com/urfave/cli v1.22.1
https://github.com/containerd/containerd/blob/v1.5.13/go.mod#L119
Background
Repo
github.com/containerd/containerd
at versionv1.5.13
uses replace directive to pin dependencygithub.com/urfave/cli
to versionv1.22.1
.According to Go Modules wikis,
replace
directives in modules other than themain module
are ignored when building the main module. It means such replace usage in dependency's go.mod cannot be inherited when building main module. And it turns out thatfuweid/embedshim
depends onurfave/cli@v1.22.2
, which is different from the pinned versioncontainerd/containerd
needed.2. Add the same replace rule to your go.mod