Comments (6)
This could be done with a gx-bin tool.
We can do this today with plain gx
by having e.g. "language": "go"
vs "language": "go-bin"
in the package.json
. (@whyrusleeping and I have discussed using a better word instead of language
, like ecosystem
or namespace
.) The go
ecosystem could be all source distributions of Go programs, while maybe go-bin
is for binaries. Or maybe even just general win32-bin
, linux-x64-bin
, etc. ecosystems for binaries, with hooks to install them to your $PATH
?
from gx.
@jbenet I definitely want this to be within the scope of what gx can do. @noffle is right about how we want to do it too, we should have the language
(yeah, better phrase is needed) be set to 'binary' or something like that, and have extra information in the package so that gx is able to find the correct binary. I'm thinking that if you type gx install -g <package ref/name>
it pulls down that ref, which is a meta-package for the binary youre wanting to install. It should have common deps that the binary may need, and then in its package.json, have links to binaries for each specific operating system/arch.
having a gx-bin
or gx-dist
subtool like you suggest would work great. I'll start thinking/writing about how that would work.
from gx.
I'm thinking that if you type gx install -g <package ref/name> it pulls down that ref, which is a meta-package for the binary youre wanting to install. It should have common deps that the binary may need, and then in its package.json, have links to binaries for each specific operating system/arch.
yeah this sounds right to me.
it may be advisable for us to study both pacman and nix in detail to learn what we can.
from gx.
i'm quite familiar with pacman (a decade of arch linux for me!) , i'll try installing nix and playing around with it.
The hard choices come down to: where do we want to install things to? The system paths? or our own paths (or better, install to our own paths and symlink into the system paths)
from gx.
Now my question is, should we have a single gx-bin
that knows how to install on every platform? Or do we have a gx-$PLATFORM
tool for each that knows how to install just its target
from gx.
👍 for downloading into our own paths ($prefix/ipfs/$hash/thing
)- ideally we could download into the same place (or same "layout") cross platform
- symlink in will likely have to be platform-specific, and even configurable. (could have a $binpath option to set)
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.