Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problema no [boss install http://...] #52

Closed
guimatech opened this issue Oct 21, 2019 · 7 comments
Closed

Problema no [boss install http://...] #52

guimatech opened this issue Oct 21, 2019 · 7 comments

Comments

@guimatech
Copy link

Quando o repositório que se está tentando instalar está em servidor http simples, o boss não consegue autenticar, exibindo a mensagem "[ERROR] Error to get repository of http://...: authentication required".

Obs.: Com https funciona nomalmente.

@hunsche
Copy link
Member

hunsche commented Oct 21, 2019

Talvez seja possivel utilizando o Git Nativo da maquina, oque acha @snakeice ?

@guimatech
Copy link
Author

guimatech commented Oct 23, 2019

PS C:\Projetos\Plataforma> boss login http://192.168.0.30                                                        
Use SSH(y or n):
y
Path of ssh private key(C:\Users\gumball\.ssh\id_rsa):
PS C:\Projetos\Plataforma> boss install 192.168.0.30/plataforma/api                                            
[INFO ] Installing modules in project path
[INFO ] Building cache files...
[INFO ] Updating cache of dependency api
[INFO ] Downloading dependency 192.168.0.30/plataforma/api
[ERROR] Error to get repository of 192.168.0.30/plataforma/api: Get https://192.168.0.30/plataforma/api/info/refs?service=git-upload-pack: dial tcp 192.168.0.30:443: connectex: Nenhuma conexão pôde ser feita porque a máquina de destino as recusou ativamente.
PS C:\Projetos\Plataforma> boss install http://192.168.0.30/plataforma/api
[INFO ] Installing modules in project path
[INFO ] Building cache files...
[INFO ] Updating cache of dependency api
[INFO ] Downloading dependency http://192.168.0.30/plataforma/api
[ERROR] Error to get repository of http://192.168.0.30/plataforma/api: authentication required

@snakeice
Copy link
Member

Opa, psé ele força o https, estou trabalhando em melhora esse processo de autenticação e mais algumas expressões que envolvem o processo de instalação de novas dependências.

Tem como habilitar o "https" ai por hora?

O boss login por enquanto precisa ir sem o "http://"

A principio lá por segunda-feira vou acabar e liberara as modificação

@snakeice
Copy link
Member

snakeice commented Nov 4, 2019

@guimaraes-lucas Olá, foi liberara a versão 3.0.1, poderia atualizar sua versão e executar novamente o boss install http://192.168.0.30/plataforma/api

@viniciussanchez
Copy link
Member

viniciussanchez commented Nov 4, 2019

@snakeice testamos aqui tambem, pois tambem precisamos da correção. Estamos usando o GitLab interno. O problema nosso aparentemente é referente a porta. Repare no print abaixo, que quando dei um boss install eu informei a URL com uma porta específica e parece que a mesma é ignorada, ou pelo que vimos aqui nos fontes, ele entende a porta como sendo versão, algo assim.

image

image

@viniciussanchez
Copy link
Member

re := regexp.MustCompile((?m)(?P<host>.*)(\:(?P<version>[\^~]?[\d.]{1,5}))|(?P<host_only>.*)$)

Nessa linha teria que tratar quando é informado a porta. Algo semelhante a isso aqui talvez...

regexp.MustCompile((?m)(?P<host>.*)(\:?P<port>)(\:(?P<version>[\^~]?[\d.]{1,5}))|(?P<host_only>.*)$)

@guimatech
Copy link
Author

Configurei o servidor local com um certificado fake no arquivo do gitlab.rb e o boss funcionou tranquilamente, mas obrigado pela atenção!
Agora estamos começando a organizar as versões das bibliotecas e projetos.

Obrigado @snakeice @hunsche @viniciussanchez .

@snakeice snakeice closed this as completed Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants