supportedArchitectures
setting
#3855
Unanswered
alicewriteswrongs
asked this question in
Q&A
Replies: 1 comment
-
@alicewriteswrongs Nah... it's broken for both
|
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
-
Hello! I'm using the
supportedArchitectures
setting in.yarnrc.yml
in an attempt to have yarn install packages from@swc
for bothdarwin
andlinux
, and for bothx64
andarm64
. I'm also usingnodeLinker: "node-modules"
because swc doesn't yet support pnp.Here is my
yarnrc.yml
:The thing I'm running into is that when I do a
yarn install
it still only installs the packages for the current platform. Is that the intended behavior here? Is there any way to get yarn to always install the architectures I've listed here, regardless of what platform of the current host is?I have a rather specific and slightly funny use-case for this. We run a dev build of our React app in a docker container, so when that container boots it runs
yarn install
, installinglinux
andx64
packages. However, I'm running docker on a macOS host machine, and I like being able to do things like run tests from the host without needing to run everything within the docker container. Thenode_modules
directory is shared between the host and the container, so whichever one runs a yarn install decides which architecture is installed. I'd like to have them both installed all the time so that I don't need to remember whether I ranyarn install
on the host machine or in the container, and so everything can 'just work' :)lmk if anything here doesn't make sense! I'm just hoping that I have something misconfigured :)
Beta Was this translation helpful? Give feedback.
All reactions