pub enum ProxyConfigError {
HomeDirUnavailable(Ecosystem),
InlineTokenEmpty(Ecosystem),
PypiRequiresResolvedKey,
}Variants§
InlineTokenEmpty(Ecosystem)
CLEANLIB-129 / Jira CLEANLIB-28: refuse inline_token=true when the
provided api_key is missing or empty/whitespace-only. Pre-fix
behaviour emitted _authToken= (empty) → broken .npmrc.
PypiRequiresResolvedKey
CLEANLIB-758 · pip does NOT expand ${VAR} in pip.conf (unlike npm
in ~/.npmrc or a shell in GOAUTH). Emitting the placeholder into
the pypi index-url produced a pip.conf that 401’d on every request —
then surfaced as No matching distribution found and read to the
customer as “the catalog is empty”. The pypi emitter now requires a
resolved key so the emitted config actually authenticates; the caller
hits this error when neither a stored api_key nor --emit-netrc is
available and prompts the customer to cleanlib login first.
Trait Implementations§
Source§impl Debug for ProxyConfigError
impl Debug for ProxyConfigError
Source§impl Display for ProxyConfigError
impl Display for ProxyConfigError
Source§impl Error for ProxyConfigError
impl Error for ProxyConfigError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ProxyConfigError
impl RefUnwindSafe for ProxyConfigError
impl Send for ProxyConfigError
impl Sync for ProxyConfigError
impl Unpin for ProxyConfigError
impl UnsafeUnpin for ProxyConfigError
impl UnwindSafe for ProxyConfigError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more