GithubHelp home page GithubHelp logo

Comments (6)

l3x avatar l3x commented on June 18, 2024

Regarding installing urfave/cli ... We can avoid any unexpected compatibility pains once v2 becomes master, by pinning it to v1 like so:

$ go get gopkg.in/urfave/cli.v1

and in our source files:

...
import (
  "gopkg.in/urfave/cli.v1" 
)
...

Or should we just specify the version in Gopkg.lock and keep our source cleaner looking?

...
import (
  "gopkg.in/urfave/cli" 
)
...

from keep-core.

Shadowfiend avatar Shadowfiend commented on June 18, 2024

For now letโ€™s specify in Gopkg. We will actually need to fork it and pin to a commit, but we can wait a little if we want to let the newer version advance in the meantime.

If we intend on using an existing version, then letโ€™s fork and pin to the current master HEAD commit.

from keep-core.

Shadowfiend avatar Shadowfiend commented on June 18, 2024

@l3x can you make sure to pull this into the appropriate column in the GH project?

from keep-core.

l3x avatar l3x commented on June 18, 2024

I added the following to the .toml file, which pins urfave/cli to a specific revision hash and points the source to our forked repo:

Gopkg.toml

[[constraint]]
  name = "github.com/urfave/cli"
  revision = "8e01ec4cd3e2d84ab2fe90d8210528ffbb06d8ff"
  source = "https://github.com/keep-network/cli.git"

When I ran dep ensure the following was added to the .lock file:

Gopkg.lock

[[projects]]
  name = "github.com/keep-network/cli"
  packages = ["."]
  revision = "cfb38830724cc34fedffe9a2a29fb54fa9169cd1"
  version = "v1.20.0"

[[projects]]
  name = "github.com/urfave/cli"
  packages = [
    ".",
    "altsrc"
  ]
  revision = "8e01ec4cd3e2d84ab2fe90d8210528ffbb06d8ff"
  source = "https://github.com/keep-network/cli.git"

Is that what you're talking about?

from keep-core.

Shadowfiend avatar Shadowfiend commented on June 18, 2024

Yeah that looks good to me ๐Ÿ‘

from keep-core.

l3x avatar l3x commented on June 18, 2024

Thanks!

from keep-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.