mirror of
https://github.com/astral-sh/uv.git
synced 2025-09-28 04:54:47 +00:00
Publish: Password requires username (#8045)
This commit is contained in:
parent
88cbc98eec
commit
dda91d443c
1 changed files with 4 additions and 0 deletions
|
@ -81,6 +81,10 @@ pub(crate) async fn publish(
|
|||
}
|
||||
};
|
||||
|
||||
if password.is_some() && username.is_none() {
|
||||
bail!("You need to provide a username with a password, use `--token` for tokens");
|
||||
}
|
||||
|
||||
for (file, filename) in files {
|
||||
let size = fs_err::metadata(&file)?.len();
|
||||
let (bytes, unit) = human_readable_bytes(size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue