If bundle install downloads gems and then stops at a Git dependency, investigate that dependency's source. The successful downloads establish only the route used for those downloads.

  1. Read the actual Git URL in the Gemfile or lockfile. HTTPS, SSH and git:// need different connections. Historical Bundler shortcuts can hide a git:// URL in a short declaration.
  2. Inspect the Git invocation used by the build. Compare its effective configuration, environment and account with a working terminal invocation. A build agent or privileged command can see different inputs.
  3. Follow the selected transport. For an authorized HTTPS source, native Git's supported HTTP proxy configuration can apply. For SSH, use the organization's supported SSH route. An HTTP proxy setting does not configure every transport Bundler can start.

For a public HTTPS Git source that permits public intermediaries, the HTTP proxy list offers endpoint candidates for that Git configuration.

Now classify the error. A 407 concerns access to the intermediary. A private repository's permission error after a tunnel succeeds concerns its separate account or key. Keep proxy credentials out of the Gemfile and committed source URLs; those declarations are shared with project users whose network settings can differ.

Do not replace a working proxy or edit a domain-qualified account merely because an unrelated workaround recommends it. Completion means fetching the specific Git source through the intended route. Repeating the already successful gem downloads leaves that failure untested.

Tënë sô zo