Giter Site home page Giter Site logo

gx-bin about gx HOT 6 OPEN

whyrusleeping avatar whyrusleeping commented on July 26, 2024
gx-bin

from gx.

Comments (6)

hackergrrl avatar hackergrrl commented on July 26, 2024

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.

whyrusleeping avatar whyrusleeping commented on July 26, 2024

@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.

jbenet avatar jbenet commented on July 26, 2024

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.

whyrusleeping avatar whyrusleeping commented on July 26, 2024

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.

whyrusleeping avatar whyrusleeping commented on July 26, 2024

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.

jbenet avatar jbenet commented on July 26, 2024
  • 👍 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)

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.