Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discussion] Yarn & binaries #181

Open
brillout opened this issue May 19, 2019 · 1 comment
Open

[Discussion] Yarn & binaries #181

brillout opened this issue May 19, 2019 · 1 comment
Labels
discussion Discussion about the project

Comments

@brillout
Copy link

brillout commented May 19, 2019

You mention that Yarn berry is designed to be able to support packages for PHP, Python, Ruby, etc. I was wondering if it's also designed for binaries.

Imagine

{
  "name": "my-app",
  "dependencies": {
    "react": "npm:react@16.8.6",
    "parcel": "github:parcel-bundler/parcel@1.12.3",
    "node": "nix:nodejs@12.2.0",
    "psql": "nix:postgresql@11.3.0"
   }
}

Meaning that yarn install is all I have to do to setup a project, rm -rf path/to/project/repo to remove the project and all it's dependencies, and, with zero-install, yarn stop && git pull && yarn start to deploy to production.

How awesome would that be..

@arcanis
Copy link
Member

arcanis commented May 19, 2019

It would be interesting, for sure! Binaries are an "install" target like many others, and we certainly could support them. In fact, it'll likely be needed at some point if we eventually want to support compiled languages such as C/C++ - where we don't always want to install the packages from source.

One caveat (and I know others are looking to solve it) is that binaries are typically platform-specific. It means that we would need some way to use different "flavors" of packages depending on the host. I have some ideas as to how to fix this (the resolver would ignore any platform-specific information, but the fetcher would extend the resolved data with platform-specific ones), but it'll need to be put to the test 🙂

@arcanis arcanis added the discussion Discussion about the project label May 19, 2019
@arcanis arcanis changed the title Yarn & binaries [Discussion] Yarn & binaries May 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussion about the project
Projects
None yet
Development

No branches or pull requests

2 participants