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

[Bug?]: @swc/core dependency not cached #4256

Closed
1 task
julienfouilhe opened this issue Mar 23, 2022 · 3 comments · Fixed by #4264
Closed
1 task

[Bug?]: @swc/core dependency not cached #4256

julienfouilhe opened this issue Mar 23, 2022 · 3 comments · Fixed by #4264
Labels
documentation This issue or pull request is about the documentation

Comments

@julienfouilhe
Copy link
Contributor

julienfouilhe commented Mar 23, 2022

Self-service

  • I'd be willing to implement a fix

Describe the bug

I have added @swc/core as a dependency.

I have the following in my .yarnrc.yml:

nodeLinker: node-modules

supportedArchitectures:
  cpu:
    - x86
    - arm64
  os:
    - darwin
    - linux

When I run yarn install on my M1 macbook pro, @swc/core dependency @swc/core-linux-arm64-musl is not added to the yarn cache, thus resulting in discrepancies between machines.

To reproduce

Add @swc/core as a dependency on a m1 mac, and try to run yarn install --immutable --immutable-cache on linux.

Environment

System:
    OS: macOS 12.1
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 16.14.2 - /private/var/folders/s9/x9s630sd4xd287p7xfg6r49h0000gn/T/xfs-c6a2588c/node
    Yarn: 3.2.0 - /private/var/folders/s9/x9s630sd4xd287p7xfg6r49h0000gn/T/xfs-c6a2588c/yarn
    npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm

Additional context

No response

@julienfouilhe julienfouilhe added the bug Something isn't working label Mar 23, 2022
@merceyz
Copy link
Member

merceyz commented Mar 23, 2022

This is happening because you're not specifying which libc version to support. We should update the documentation to include it as well.

@julienfouilhe
Copy link
Contributor Author

Can confirm that having this in yarnrc.yml fixes the issue.

supportedArchitectures:
  cpu:
    - x86
    - arm64
  os:
    - darwin
    - linux
  libc:
    - glibc
    - musl

@merceyz
Copy link
Member

merceyz commented Mar 23, 2022

I'll keep this open so we remember to update the documentation

@merceyz merceyz reopened this Mar 23, 2022
@merceyz merceyz added documentation This issue or pull request is about the documentation and removed bug Something isn't working labels Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This issue or pull request is about the documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants