Coder Social home page Coder Social logo

gentoo-ego-vendor-update's Introduction

Gentoo EGO_VENDOR updater

Helper script to update hashes inside an ebuild's EGO_VENDOR variable. It goes over the list of dependencies, fetches the latest HEAD's hash and outputs an up-to-date EGO_VENDOR.

Builds on Zac Medico's one-liners from https://bugs.gentoo.org/show_bug.cgi?id=615444

Usage

$ ./update_ego_vendor.sh /usr/portage/app-emulation/lxd/lxd-2.14-r1.ebuild

Limitations

  • Assumes github. Either the dependency line is in the github.com/foo/bar <hash> form or in the some-name <hash> github.com/foo/bar one.
  • Github limits access to its API to 60 requests per hour.

Generate EGO_VENDOR from source

Manually updating EGO_VENDOR, even with update_ego_vendor.sh was becoming tiresome when the package would add new dependencies with lots of sub-dependencies, so I created a whole new script with a new approach: extract_ego_vendor.sh.

To use this script, you must first create yourself an empty directory and set your GOPATH env variable to that path. Then, use go get or whatever else you need and ;et it fetch its dependencies. Then call extract_ego_vendor.sh with one argument: a path inside your GOROOT that has the github.com, gopkg.in and golang.org subdirectories.

You will then get a neat EGO_VENDOR output.

For now, this has only been tested with lxc/lxd.

gentoo-ego-vendor-update's People

Contributors

erikmack avatar

Watchers

 avatar

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.