Comments (7)
looks like gx import <pkg>
is the thing gx wants me to do.
- other pkg mgrs use
gx install <pkg>
(see npm) - at the very least
gx install <pkg>
should return an error.
from gx.
@jbenet right. I had the concepts of 'fetch all dependencies' and 'grab a new dependency' as separate in my mind. Do you think that it should just be install?
Where gx install
has the same behaviour that it currently has, and gx install XYZ
does what gx import XYZ
does now?
from gx.
(Aside: gx
is super cool!)
I'm partial to the way npm separates downloading ("installing") a package and adding a package dependency ("saving"):
npm install X
: download X and place it in vendor/ -- don't update package.json
npm install --save X
: like the above, but add it as a package dependency
npm install
: expands to npm install X Y Z
, assuming pkg depends on X, Y, and Z
from gx.
@noffle yeah, i think i agree with this.
how about this:
gx install X
acts like npm install X
, no package.json changes
gx import X
acts like npm install --save X
, and updates the package.json
gx install --save X
can essentially be an alias to gx import
gx install
currently expands to gx install X Y Z
, just like npm install
from gx.
@whyrusleeping yes! Brilliant. :)
Just to clarify, I think that both install
and import
should both still create the named symlink in vendor/
-- agreed?
from gx.
@noffle yeah, i want to keep that. Right now, the link is added at the same time its imported, and the linkname is written to the package.json so that the same link is created on further installs.
from gx.
this now does a thing, closing
from gx.
Related Issues (20)
- gx packages should be read-only HOT 6
- Special document of how is `gx` used in `go-ipfs`
- What happens when I install `go-ipfs`? HOT 1
- Add an option to use package name and version in the import path for new developers HOT 4
- empty .gx/post-install created HOT 13
- `gx lock-install`: option to make relative links HOT 1
- install --save installs multiple times
- Gx-ify Gx HOT 1
- knownhosts missing? HOT 3
- Replacing a gx-lock vendored dep with a symlink causes `gx install` to panic HOT 10
- gx link
- v0.14.0 publish broken HOT 5
- error in go get -u github.com/whyrusleeping/gx HOT 1
- when i input 'go get -u github.com/whysleeping/gx' the item return me package unrecognized import path HOT 2
- i cannot use the command gx? HOT 1
- Can't publish; please run an ipfs node and try again HOT 7
- why "inner import" of go-ipfs package published by gx contain hash value HOT 4
- Build issues for ppc64le architecture HOT 2
- Using gx for other languages than go HOT 1
- Breaking change in dependency HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gx.