question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

artifact urls for scoped package format doesn't play nicely with yarn --offline

See original GitHub issue

Describe the bug A clear and concise description of what the bug is.

verdaccio returns artifact urls for scoped packages that look like this: https://{verdaccio-url}/@babel%2fcode-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8

as opposed to in public registry:

https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8

i.e. basically identical except verdaccio url encodes the scope/package as @babel%2fcode-frame instead of @babel/code-frame

But yarn’s regex for finding packages in its offline cache don’t work with this: https://github.com/yarnpkg/yarn/blob/master/src/fetchers/tarball-fetcher.js#L21

To Reproduce Steps to reproduce the behavior:

  1. yarn add a scoped package
  2. follow steps here to populate offline mirror

Expected behavior Offline mirror should have all the scoped packages.

Is there a reason why verdaccio url encodes the / there?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
juanpicadocommented, Sep 7, 2019

I think this can be closed https://github.com/yarnpkg/yarn/commit/b8af7e05acf965e612f2f8fafa240aa9bd069a41 https://github.com/yarnpkg/yarn/pull/7499 @moon-stripe please try again or 😃 just tell me so I can close this ticket.

1reaction
juanpicadocommented, May 28, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Running Yarn offline | Yarn Blog
Remove the package first. Make sure you have “yarn-offline-mirror-pruning” set to true in your .yarnrc file · Clear the yarn cache with “yarn ......
Read more >
Securing Applications and Services Guide - Keycloak
These standards define an identity token JSON format and ways to digitally sign and encrypt that data in a compact and web-friendly way....
Read more >
Nixpkgs 22.11 manual - NixOS
Nix expressions describe how to build packages from source and are collected in the nixpkgs repository. Also included in the collection are Nix...
Read more >
Yarn 3.0 - Hacker News
I used to use yarn all the time until I tried pnpm. The speed is amazing, and as a traveler I love that...
Read more >
Choose when to run jobs - GitLab Docs
job: script: echo "This job does NOT create double pipelines! ... Use the job name as the value for dependencies as a string...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found