Skip to content

uv tool install with --allow-insecure-host does not work as expected #11176

@doraeric

Description

@doraeric

Summary

I want to install a package from my internal gitlab repo with the following command

uv tool install --allow-insecure-host git.example.com git+https://git.example.com/user/repo.git

but I got some errors

Updating https://git.example.com/user/repo.git (HEAD)                                                                                   error: Git operation failed
  Caused by: failed to fetch into: /home/user/.cache/uv/git-v0/db/xxx
  Caused by: process didn't exit successfully: `/usr/bin/git fetch --force --update-head-ok 'https://git.example.com/user/repo.git' '+HEAD:refs/remotes/origin/HEAD'` (exit status: 128)
--- stderr
fatal: unable to access 'https://git.example.com/user/repo.git/': server certificate verification failed. CAfile: none CRLfile: none

When looking for existing issues, I found this one #8555 . Although they don't seem to be related.

I can bypass this issue by setting the environment variable GIT_SSL_NO_VERIFY=true though, as instructed here.

Platform

Ubuntu 22.04 (Linux 5.15.0-126-generic x86_64 GNU/Linux)

Version

uv 0.5.18

Python version

Python 3.12.8

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedContribution especially encouraged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions