napi-rs / napi-rs/package-template

yarn config with the current script `yarn-4.3.1.cjs` breaks `.yarnrc.yml

Open
#371 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
372
Forks
45
Avg merge
3m
Merged PRs (30d)
1

Description

When running the command yarn config set supportedArchitectures.cpu "arm" the following will format the file incorrectly:

nodeLinker: node-modules
    
    npmAuditRegistry: "https://registry.npmjs.org"
    
    supportedArchitectures:
      cpu: arm
    
    yarnPath: .yarn/releases/yarn-4.3.1.cjs

The script in yarn-4.3.1.cjs does not format the modules correctly across all systems.

Locally and on the github action.

github action trying to re-configure the yarn rc running the command yarn config set supportedArchitectures.libc "musl".

It works when using yarn-3.6.4.cjs.

yarn config set supportedArchitectures.cpu "arm" - working in terminal using yarn-3.6.4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce yarn config set supportedArchitectures.cpu "arm" with yarn-4.3.1.cjs, and compare the resulting .yarnrc.yml with the behavior of yarn-3.6.4.cjs. Check the same command locally and in the GitHub Action; done means the configuration remains correctly formatted across both environments.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.