lucachr / nitrogen Goto Github PK
View Code? Open in Web Editor NEWA simple dependency manager for Go.
License: MIT License
A simple dependency manager for Go.
License: MIT License
bash version on OS X requires something more like this on line 49 to work on different platforms. This will work on Ubuntu and OS X nicely.
new=$(mktemp -t /tmp/nitro.XXXXXX)
See https://github.com/lucachr/nitrogen/blob/master/nitrogen#L75.
In general, I was a bit confused to get this file at all, I don't think it's mentioned in the readme?
Issues with go projects with no base *.go files, for example:
golang.org/x/crypto f7445b17d61953e333441674c2d11e91ae4559d3
package golang.org/x/crypto
imports golang.org/x/crypto
imports golang.org/x/crypto: no buildable Go source files in /Users/owen/projects/go/src/golang.org/x/crypto
This is because there are no *.go files in the root directory of the repos.
$ /projects/go/src/golang.org/x/crypto
$ ls
AUTHORS README cast5 nacl outupt salsa20 twofish
CONTRIBUTORS bcrypt curve25519 ocsp pbkdf2 scrypt xtea
LICENSE blowfish hkdf openpgp poly1305 sha3 xts
PATENTS bn256 md4 otr ripemd160 ssh
For now, I commented out the last steps of install
function install {
# If something goes wrong, bring repositories to the
# standard version.
trap clean SIGHUP SIGINT SIGTERM
fmap go_get $DEP_FILE
fmap select_version $DEP_FILE
# cd $PKG_DIR
# echo "install: $(strip_gopath $PKG_DIR)"
# go install
if [[ "$1" == '--no-clean' ]]; then
exit 0
fi
# All right, clean reposiories and return
clean
}
I updated deps
manually and run nitrogen -i
. However, the specified commit was not downloaded yet. I think nitrogen just quit early. It would be great to display an error or run go get -u
automatically.
I'm using the stretchr codecs and see the following duplicated lines in the deps file...
github.com/stretchr/codecs 8e29b38960a541ed1264b001dcb21701283c590d
github.com/stretchr/codecs 8e29b38960a541ed1264b001dcb21701283c590d
github.com/stretchr/codecs 8e29b38960a541ed1264b001dcb21701283c590d
github.com/stretchr/codecs 8e29b38960a541ed1264b001dcb21701283c590d
github.com/stretchr/codecs 8e29b38960a541ed1264b001dcb21701283c590d
github.com/stretchr/codecs 8e29b38960a541ed1264b001dcb21701283c590d
github.com/stretchr/codecs 8e29b38960a541ed1264b001dcb21701283c590d
github.com/stretchr/codecs 8e29b38960a541ed1264b001dcb21701283c590d
github.com/stretchr/codecs 8e29b38960a541ed1264b001dcb21701283c590d
I could probably run the deps file through a sort | uniq command to de-dupe the file before processing.
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.