Vagrant: Windows: não é possível instalar o plug-in usando o arquivo gem local

Criado em 29 mar. 2017  ·  3Comentários  ·  Fonte: hashicorp/vagrant

Versão Vagrant

Vagrant 1.9.3

Sistema operacional host

Microsoft Windows 10 Pro 10.0.10240

Sistema operacional convidado

Convidado não é necessário

Vagrantfile

Vagrantfile não é necessário

Saída de depuração

reproduza a etapa 3
reproduza a etapa 4
reproduza a etapa 5

Comportamento esperado

Plugin instalado com sucesso.

Comportamento real

Plugin não instalado

Passos para reproduzir

  1. Baixar arquivo gem vagrant-triggers
  2. Mude o diretório para onde a gem baixada foi salva
  3. vagrant plugin install vagrant-triggers-0.5.3.gem
    fetch_path': undefined method fetch_d '
    OK, talvez eu esteja usando o URI errado?
  4. vagrant plugin install file://D:/Install/vagrant-triggers-0.5.3.gem
    `initialize ': argumento inválido @ rb_sysopen - D: / Install / file: / D: /Install/vagrant-triggers-0.5.3.gem
    (Errno :: EINVAL)
    Caminho de arquivo interessante ...
  5. vagrant plugin install vagrant-triggers --plugin-source file://d:/install/ --plugin-version 0.5.3
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:

Unable to resolve dependency: 'vagrant-triggers (= 0.5.3)' requires 'bundler (~> 1.3)'

No log de depuração:
DEBUG bundler: lista de fontes atuais para instalação: [ "file: // d / install /" , "https://rubygems.org/", "https://gems.hashicorp.com/"]
Este URL está correto?

Existe alguma solução alternativa (diferente do downgrade para a versão 1.7.4)?

bug bundler duplicate

Todos 3 comentários

Olá. Isso foi corrigido por meio do # 8401 e será incluído na próxima versão. Como uma solução alternativa até o lançamento, você pode usar o estilo de caminho UNC:

$ vagrant plugin install \\?\d:\Install\vagrant-triggers-0.5.3.gem

Saúde!

@chrisroberts parece não funcionar no 1.9.4:

D:\Install>vagrant plugin install specs.4.8 --plugin-source file://d:/install/ --plugin-version 4.8
Installing the 'specs.4.8 --version '4.8'' plugin. This can take a few minutes...
Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:

  Errno::ETIMEDOUT: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "api.rubygems.org" port 443 (https://api.rubygems.org/specs.4.8.gz)

Source: https://rubygems.org/

PS specs.4.8.gz salvo em D: \ install

Vou bloquear este problema porque ele está fechado há _30 dias_ ⏳. Isso ajuda nossos mantenedores a encontrar e focar nos problemas ativos.

Se você encontrou um problema semelhante a este, abra um novo problema e preencha o modelo de problema para que possamos capturar todos os detalhes necessários para uma investigação mais aprofundada.

Esta página foi útil?
0 / 5 - 0 avaliações