berry icon indicating copy to clipboard operation
berry copied to clipboard

[Bug?]: yarn npm publish has different "request" then npm publish

Open yarinsa opened this issue 3 years ago • 1 comments

Self-service

  • [ ] I'd be willing to implement a fix

Describe the bug

I am using private registry by JFrog. Trying to publish a package.

Took me a while to work with scoped private repo (had to base64 user:password) and use it as npmAuthIdent.

When I finally got it to work, Seems like everything is great but the package cant be found. After comparison with running "npm publish" vs "yarn npm publish" I saw that the diff is that yarn uploads json file, and npm uploads a directory the contains the tgz. Not sure how to point the problem.

To reproduce

Not sure how to upload reproduction

Environment

System:
    OS: macOS 12.5.1
    CPU: (8) x64 Apple M1 Pro
  Binaries:
    Node: 16.13.1 - /private/var/folders/n_/c3nqmfn54qnbtq0zgvvcvh4r0000gp/T/xfs-8d05ed64/node
    Yarn: 3.2.2 - /private/var/folders/n_/c3nqmfn54qnbtq0zgvvcvh4r0000gp/T/xfs-8d05ed64/yarn
    npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm

Additional context

No response

yarinsa avatar Aug 23 '22 06:08 yarinsa

Update I added some debugging logs to yarn.cjs

response body {
  errors: [
    {
      status: 409,
      message: 'Expected a file but found a folder, at: npm-dev-local:@tip/tsconfig-test2'
    }
  ]
}

yarinsa avatar Aug 29 '22 12:08 yarinsa

Hi! 👋

This issue looks stale, and doesn't feature the reproducible label - which implies that you didn't provide a working reproduction using Sherlock. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it or you edit your first post to include a formal reproduction (you can use the playground for that).

Note that we require Sherlock reproductions for long-lived issues (rather than standalone git repositories or similar) because we're a small team. Sherlock gives us the ability to check which bugs are still affecting the master branch at any given point, and decreases the amount of code we need to run on our own machines (thus leading to faster bug resolutions). It helps us help you! 😃

If you absolutely cannot reproduce a bug on Sherlock (for example because it's a Windows-only issue), a maintainer will have to manually add the upholded label. Thanks for helping us triaging our repository! 🌟

yarnbot avatar Oct 04 '22 07:10 yarnbot