Hi, I’m writing a script that incorporates some functionality from another script. The other script is developed and maintained by someone else, hosted on github and released under the MIT license. What is the best way to incorporate that other repo into my own with an easy way to keep it updated when the other developer releases a new version. I don’t really intend to contribute to the other repo, just use their code.

  • jonatan83@lemmy.fmhy.ml
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    It’s probably also good to link to a fork of the repo in question, in case the original disappears.

    • madwifi@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      take a look at subtree, it incorporates the history of the upstream repository into your repository easily and if the upstream vanishes one day, you would still have a full repo history of upstream