{"id":18886809,"url":"https://github.com/albertfdp/yarn-offline-cache-ssh","last_synced_at":"2026-02-06T11:31:47.618Z","repository":{"id":67577732,"uuid":"77214497","full_name":"albertfdp/yarn-offline-cache-ssh","owner":"albertfdp","description":null,"archived":false,"fork":false,"pushed_at":"2016-12-23T09:32:20.000Z","size":578,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T05:17:06.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/albertfdp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-23T09:26:57.000Z","updated_at":"2016-12-23T09:26:57.000Z","dependencies_parsed_at":"2023-02-21T17:00:29.712Z","dependency_job_id":null,"html_url":"https://github.com/albertfdp/yarn-offline-cache-ssh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Fyarn-offline-cache-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Fyarn-offline-cache-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Fyarn-offline-cache-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Fyarn-offline-cache-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albertfdp","download_url":"https://codeload.github.com/albertfdp/yarn-offline-cache-ssh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859566,"owners_count":19708861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T07:30:59.051Z","updated_at":"2026-02-06T11:31:42.554Z","avatar_url":"https://github.com/albertfdp.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# yarn-offline-cache-ssh\n\nThis repo is intended to showcase an issue in yarn 0.18.1, where installing a dependency using git+ssh will correctly add it to the offline yarn mirror cache,\nbut it will be saved in the `yarn.lock` file with a resolved from pointing to github instead of the mirror, and thus failing to use the offline mirror in installs.\n\nWhen used in combination with a `yarn install --offline`, installs will fail because of this issue.\n\n### Steps to reproduce\n\n1. Create a package.json\n2. Run `yarn add yarn add webpack@git+ssh://git@github.com/webpack/webpack.git#v2.2.0-rc.2` or any private git dependency\n3. This will create a yarn.lock file and node_modules. To create the mirror with the correct refs: `rm -rf yarn.lock node_modules \u0026\u0026 yarn install --offline`\n4  Now references of all npm packages point to the cache, but not the git+ssh one\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertfdp%2Fyarn-offline-cache-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertfdp%2Fyarn-offline-cache-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertfdp%2Fyarn-offline-cache-ssh/lists"}