Skip to content
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

module declares its path as urfave/cli but was required as codegangsta/cli #313

Closed
g3rzi opened this issue Jul 6, 2021 · 1 comment
Closed

Comments

@g3rzi
Copy link

g3rzi commented Jul 6, 2021

Need to update the files from codegangsta/cli to urfave/cli.
Need to update the go.mod file:
Also update imports on go.mod , utils\flags.go

I also ran:

go get -u github.com/urfave/cli

I updated the Godeps.json file:

		{
			"ImportPath": "github.com/urfave/cli",
			"Comment": "v1.22.5",
			"Rev": "af7fa3de115a4f9772a7758c51f92a1e3b30a010"
		},

It fixed the issue

When file a bug report (see below for feature requests)

Please answer these quesions for a bug report. Thanks!

What version of GoTTY are you using (gotty --version)?

What operating system and browser are you using?

What did you do?

If possible, please provide the command you ran.

What did you expect to see?

What did you see instead?

If possible, please provide the output of the command and your browser's console output.

root@ubuntu:~/go/src/gotty# go get -u github.com/codegangsta/cli
go: downloading github.com/codegangsta/cli v1.22.5
go get: github.com/codegangsta/[email protected] updating to
        github.com/codegangsta/[email protected]: parsing go.mod:
        module declares its path as: github.com/urfave/cli
                but was required as: github.com/codegangsta/cli

I updated the go.mod file and tried to build but received:

root@ubuntu:~/go/src/gotty# go build main.go 
go: inconsistent vendoring in /home/jiren/go/src/gotty:
        github.com/urfave/[email protected]: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/codegangsta/[email protected]: is marked as explicit in vendor/modules.txt, but not explicitly required in go.mod

        To ignore the vendor directory, use -mod=readonly or -mod=mod.
        To sync the vendor directory, run:
                go mod vendor

When file a new feature proposal

Please provide an actual usecase that requires your new feature.

@g3rzi
Copy link
Author

g3rzi commented Jul 7, 2021

I fixed it in my repository:
g3rzi@2487168

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

No branches or pull requests

1 participant