go: github.com/oxequa/realize imports gopkg.in/urfave/cli.v2: gopkg.in/urfave/cli.v2@v2.2.0: parsing go.mod: module declares its path as: github.com/urfave/cli/v2 but was required as: gopkg.in/urfave/cli.v2 · Issue #269 · oxequa/realize · GitHub
Skip to content

go: github.com/oxequa/realize imports gopkg.in/urfave/cli.v2: gopkg.in/urfave/cli.v2@v2.2.0: parsing go.mod: module declares its path as: github.com/urfave/cli/v2 but was required as: gopkg.in/urfave/cli.v2 #269

Open

Description

@chenyongze

image

➜ go go get github.com/oxequa/realize
go: github.com/oxequa/realize upgrade => v2.0.2+incompatible
go: finding module for package github.com/oxequa/interact
go: finding module for package gopkg.in/urfave/cli.v2
go: finding module for package gopkg.in/yaml.v2
go: finding module for package github.com/go-siris/siris/core/errors
go: finding module for package github.com/labstack/echo
go: finding module for package github.com/fsnotify/fsnotify
go: finding module for package github.com/fatih/color
go: finding module for package github.com/sirupsen/logrus
go: finding module for package github.com/labstack/echo/middleware
go: finding module for package golang.org/x/net/websocket
go: found github.com/oxequa/interact in github.com/oxequa/interact v0.0.0-20171114182912-f8fb5795b5d7
go: found gopkg.in/urfave/cli.v2 in gopkg.in/urfave/cli.v2 v2.2.0
go: found github.com/fatih/color in github.com/fatih/color v1.9.0
go: found github.com/fsnotify/fsnotify in github.com/fsnotify/fsnotify v1.4.9
go: found github.com/go-siris/siris/core/errors in github.com/go-siris/siris v7.4.0+incompatible
go: found github.com/labstack/echo in github.com/labstack/echo v3.3.10+incompatible
go: found github.com/sirupsen/logrus in github.com/sirupsen/logrus v1.6.0
go: found golang.org/x/net/websocket in golang.org/x/net v0.0.0-20200625001655-4c5254603344
go: found gopkg.in/yaml.v2 in gopkg.in/yaml.v2 v2.3.0
go: github.com/oxequa/realize imports
gopkg.in/urfave/cli.v2: gopkg.in/urfave/cli.v2@v2.2.0: parsing go.mod:
module declares its path as: github.com/urfave/cli/v2
but was required as: gopkg.in/urfave/cli.v2

Activity

  1. chenyongze commented on Jun 28, 2020

    @chenyongze
    Author

    GO111MODULE=off go get github.com/oxequa/realize

  2. mathieucaroff commented on Jul 17, 2020

    @mathieucaroff

    More generally:

    # *sh
    GO111MODULE=off go get github.com/oxequa/realize
    
    # powershell
    $env:GO111MODULE # (to check it does not exist)
    $env:GO111MODULE='off'; go get github.com/oxequa/realize
    Remove-Item env:GO111MODULE
    
  3. dreamawakening commented on May 29, 2022

    @dreamawakening

    Note you can add export GO111MODULE="off" to your .bashrc, .zshrc, or ~/.config/fish/config.fish (depending on your shell).

    I'm assuming this won't cause any issues.

  4. kulak commented on Jun 21, 2023

    @kulak

    The proposed solution does not work in GO 1.20:

    GO111MODULE=off go install github.com/oxequa/realize
    ../go/src/github.com/oxequa/realize/realize/schema.go:8:2: cannot find package "github.com/urfave/cli/v2" in any of:
    	/usr/lib/go/src/github.com/urfave/cli/v2 (from $GOROOT)
    	/home/user_name/go/src/github.com/urfave/cli/v2 (from $GOPATH)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions