kamilsk / egg Goto Github PK
View Code? Open in Web Editor NEW๐ฃ egg - extended go get - alternative for the standard `go get` with a few little but useful features.
License: MIT License
๐ฃ egg - extended go get - alternative for the standard `go get` with a few little but useful features.
License: MIT License
https://whiskybadger.io/post/introducing-go-pipeline/
Concept of a pipeline: input -> fix vanity url -> checkout version -> cleanup git and others -> output
using ldflags
curl -sL https://git.io/passport | bash
$HOME/go/external:$HOME/go/internal
go get something... | egg -move-to-vendor [package]
$ go get github.com/kamilsk/semaphore | goget -version ~3.0.*
Where version is full support of https://glide.readthedocs.io/en/latest/versions/
add .lock, remove hashes
go get [package with vanity url problem] 2>&1 | egg -fix-vanity-url -version 2.x
-version 2.x
- impossible in this case, because nothing happens in stdout/stderr
$ go get golang.org/x/net/context 2>&1
...nothing
egg -self-update
curl -sL https://git.io/guard | bash
## Feedback
[![@kamilsk](https://img.shields.io/badge/author-%40ikamilsk-blue.svg)](https://twitter.com/ikamilsk)
[![@octolab](https://img.shields.io/badge/sponsor-%40octolab-blue.svg)](https://twitter.com/octolab_inc)
## Notes
- made with โค๏ธ by [OctoLab](https://www.octolab.org/)
curl -sL https://git.io/click | bash
egg install retry
which by default try to find best way for installation: brew, wget, etc.
or
egg install retry -> go get github/retry -> go get bitbucket retry + fix vanity url -> checkout to latest
As example
$ go get bitbucket.org/kamilsk/semaphore | goget -fix-vanity-url
should be move $GOPAHT/src/bitbucket.org/kamilsk/semaphore
to $GOPAHT/github.com/kamilsk/semaphore
$ egg package[@<tag|branch|commit>] -- some command in package dir
for example:
$ egg github.com/kamilsk/[email protected] -- make cmd-install
egg some/package
src/
- some/package/
- vendor/deps
curl -sL https://git.io/forma | bash
how to
egg deps list --all
as a proxy for go list -m all
egg tools init
should be run go mod init
with a root module and prefix (path to tools)--ldflags '-linkmode external -extldflags "-static"'
curl -sL https://git.io/chicken | sh
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.