uv icon indicating copy to clipboard operation
uv copied to clipboard

There are some issues when using other indexes

Open zlpmetyou opened this issue 6 months ago • 1 comments

Summary

create a new project

uv init demo

install flask with default

cd demo
uv add flask

uv.lock like as

Image

it used default PyPI, it's ok

Then i want to install a package from private index, i add index to pyproject.toml

Image

install package

uv add 

issue 1:

Image in uv.lock , all packages source have been replaced by private index, Does this mean that all packages are installed from a private index?

then i search from uv documentation

Image

do it! remove package and index first

uv remove configserver-python

Image

issue 2:

Image all packages source in uv.lock still my private index

uv lock? do it

uv lock

Image nothing happened, still private index uv lock --refresh?

uv lock --refresh

Image

still private index.

ok, remove it . redo all.

Image

uv add flask configserver-python

Platform

Ubuntu24.04

Version

uv 0.7.3

Python version

Python 3.12.3

zlpmetyou avatar May 13 '25 10:05 zlpmetyou