{"id":17310169,"url":"https://github.com/drnic/bundle_install_not_resolve_with_vendor_cache","last_synced_at":"2025-06-26T15:34:31.403Z","repository":{"id":24899483,"uuid":"28315977","full_name":"drnic/bundle_install_not_resolve_with_vendor_cache","owner":"drnic","description":null,"archived":false,"fork":false,"pushed_at":"2014-12-21T22:50:15.000Z","size":252,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T00:28:14.702Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drnic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-21T22:43:57.000Z","updated_at":"2019-07-08T09:44:46.000Z","dependencies_parsed_at":"2022-08-23T09:50:56.783Z","dependency_job_id":null,"html_url":"https://github.com/drnic/bundle_install_not_resolve_with_vendor_cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drnic/bundle_install_not_resolve_with_vendor_cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drnic%2Fbundle_install_not_resolve_with_vendor_cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drnic%2Fbundle_install_not_resolve_with_vendor_cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drnic%2Fbundle_install_not_resolve_with_vendor_cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drnic%2Fbundle_install_not_resolve_with_vendor_cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drnic","download_url":"https://codeload.github.com/drnic/bundle_install_not_resolve_with_vendor_cache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drnic%2Fbundle_install_not_resolve_with_vendor_cache/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262095213,"owners_count":23258113,"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-10-15T12:36:01.029Z","updated_at":"2025-06-26T15:34:31.383Z","avatar_url":"https://github.com/drnic.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Demonstration of a bundler bug\n==============================\n\nFrom a chat with Andre Arko, when bundler should prioritize gems in `vendor/cache` when resolving dependencies.\n\nI think this project shows that this isn't happening as expected. Or its a chance for someone to show me how to get this to work.\n\nThe bug:\n\n```\n$ bundle\nFetching gem metadata from https://rubygems.org/.........\nResolving dependencies...\nBundler could not find compatible versions for gem \"nokogiri\":\nIn Gemfile:\nbosh_vsphere_cpi (= 1.2797.0) ruby depends on\nnokogiri (~\u003e 1.5.10) ruby\n\nnokogiri (1.6.5)\n```\n\nThe gems\n--------\n\nIn `vendor/cache` is `bosh_vsphere_cpi-1.2797.0.gem` - this is a patched/locally created version of the same gem that is on rubygems.org.\n\nIt has been modified to allow nokogiri 1.6.5.\n\n```\n$ gem spec vendor/cache/bosh_vsphere_cpi-1.2797.0.gem\n...\n- !ruby/object:Gem::Dependency\nname: nokogiri\nrequirements:\n- - \"\u003e=\"\n- !ruby/object:Gem::Version\nversion: 1.5.10\n- - \"\u003c\"\n- !ruby/object:Gem::Version\nversion: '2.0'\n```\n\nThe version on rubygems is constrained to `~\u003e 1.5.10` (see http://rubygems.org/gems/bosh_vsphere_cpi/versions/1.2797.0\\)\n\n`bundle install` *should* be using the `vendor/cache/bosh_vsphere_cpi-1.2797.0.gem` file when resolving dependencies. Instead, its seemingly using the `requirements:` from the remote `bosh_vsphere_cpi-1.2797.0.gem`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrnic%2Fbundle_install_not_resolve_with_vendor_cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrnic%2Fbundle_install_not_resolve_with_vendor_cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrnic%2Fbundle_install_not_resolve_with_vendor_cache/lists"}