-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Dependency bug in v1.22.0 #888
Comments
To fix that i find in spf13/cobra#917 (comment)
|
If anyone is failing to get aws-lambda-go, refer to aws/aws-lambda-go#231 (comment) Issue: aws/aws-lambda-go#231 |
This should be fixed now. Use v1.22.1 |
@asahasrabuddhe What should I do to get v1.22.1? Using |
@asahasrabuddhe My bad, something was cached on my end (or not) but now it builds correctly. Sorry |
Should I close this? |
Hi. Dep not working for this PR. $ go version
go version go1.11.5 darwin/amd64
$
$ dep version
dep:
version : v0.5.4
build date : 2019-07-01
git hash : 1f7c19e
go version : go1.12.6
go compiler : gc
platform : darwin/amd64
features : ImportDuringSolve=false main.go package main
import (
"os"
"github.com/urfave/cli"
)
func main() {
app := cli.NewApp()
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "config, c",
},
}
app.Action = func(c *cli.Context) error {
return nil
}
app.Run(os.Args)
} $ dep init
Using ^1.22.0 as constraint for direct dep github.com/urfave/cli
Locking in v1.22.0 (bfe2e92) for direct dep github.com/urfave/cli
Locking in v1.0.10 (7762f7e) for transitive dep github.com/cpuguy83/go-md2man
Locking in v2.0.1 (d3b5b03) for transitive dep github.com/russross/blackfriday
Locking in v1.0.0 (7bfe4c7) for transitive dep github.com/shurcooL/sanitized_anchor_name # Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true
[[constraint]]
name = "github.com/urfave/cli"
version = "1.22.0"
[prune]
go-tests = true
unused-packages = true $ go run main.go
# ./vendor/github.com/cpuguy83/go-md2man/md2man
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:11:16: undefined: blackfriday.EXTENSION_NO_INTRA_EMPHASIS
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:12:16: undefined: blackfriday.EXTENSION_TABLES
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:13:16: undefined: blackfriday.EXTENSION_FENCED_CODE
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:14:16: undefined: blackfriday.EXTENSION_AUTOLINK
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:15:16: undefined: blackfriday.EXTENSION_SPACE_HEADERS
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:16:16: undefined: blackfriday.EXTENSION_FOOTNOTES
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:17:16: undefined: blackfriday.EXTENSION_TITLEBLOCK
vendor/github.com/cpuguy83/go-md2man/md2man/md2man.go:19:29: too many arguments to conversion to blackfriday.Markdown: blackfriday.Markdown(doc, renderer, extensions)
vendor/github.com/cpuguy83/go-md2man/md2man/roff.go:19:9: cannot use roffRenderer literal (type *roffRenderer) as type blackfriday.Renderer in return argument:
*roffRenderer does not implement blackfriday.Renderer (missing RenderFooter method)
vendor/github.com/cpuguy83/go-md2man/md2man/roff.go:102:11: undefined: blackfriday.LIST_TYPE_ORDERED
vendor/github.com/cpuguy83/go-md2man/md2man/roff.go:102:11: too many errors I'm change version to 1.22.1, but i have now error:
|
We are using v2 of the go-md2man library. As the error indicates, there is no v2 tag which correctly resolves our requirement of v2. Please open an issue over there. Once they add the tag, this should work smoothly. EDIT: Just a tip, I'd consider migrating to Go Modules as soon as possible. Dependency managers such as Glide and Dep are no longer supported by Go and moving forward most of the packages would offer support for Go Modules. Moving now would save a considerable amount of time and effort in the future! |
The migration is as easy as executing two commands at your project folder. Read these links for further assistance: https://starkandwayne.com/blog/switching-to-go-modules/ |
Failing on v1.22.2 for me. I notice that if I don't specify a version 1.22.0 is selected, which works great and doesn't have that bug. Anything above fails. I forked the project and updated my gopkg.toml to use a branch (called test) that is just a copy of the v1.22.2 tag
this is the log :
|
This error can be traced back to the |
Okay, thanks ! |
When i delete vendor, Gopkg.lock.
Im use "dep ensure -v"
Dep update cli to v1.22.0
And get new dependency
After when i start my service i has some errors
The text was updated successfully, but these errors were encountered: