Skip to content

An invalid netrc file does not produce a warning #7685

Closed
@mathialo

Description

@mathialo

I recently migrated one of our projects from poetry to uv, and one thing that made me stumble was a syntax error in my netrc file. Uv would just silently ignore the error and move on as if the netrc file did not exist, which made it a bit hard to figure out what was going on.

I think a better approach would be if the Netrc::new() call returns a parsing error, to log a warning about it before ignoring it, to let users know why the netrc file is being ignored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    error messagesMessaging when something goes wronghelp wantedContribution especially encouragedtracingVerbose output and debugging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions