Building yarn from source for a specific branch #4734
Unanswered
smijolovic
asked this question in
Q&A
Replies: 1 comment
-
To build a specific version of Yarn you can run the following: git clone --depth 1 -b @yarnpkg/cli/3.2.2 https://github.com/yarnpkg/berry.git
cd berry
node ./scripts/run-yarn.js build:cli --no-git-hash That will output a bundle of Yarn at Though note that we recommend installing Yarn with Corepack which is a binary that Node.js provides. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When attempting to build yarn from source, the documentation only provides a means to build the yarn-cli bundle from the master branch.
This leads to a 4.0.0-rc branch build - but want to do this for a stable release branch (3.2.2 in this instance).
What is the proper way to use the 3.2.2 branch tag in git to clone the repo, and once built...what is the proper way to package yarn for a package installer (in our case a deb package)?
So far, I've been able to pull a specific tag to clone and build the bundle:
How should it be packaged to be installed globally with the bundle complete?
Beta Was this translation helpful? Give feedback.
All reactions