[Bug 273134] ports-mgmt/pkg: pkg 1.20.5 ignores NETRC env variable

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 14 Aug 2023 12:14:34 UTC

            Bug ID: 273134
           Summary: ports-mgmt/pkg: pkg 1.20.5 ignores NETRC env variable
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pkg@FreeBSD.org
          Reporter: dominik.lisiak@bemsoft.pl
             Flags: maintainer-feedback?(pkg@FreeBSD.org)
          Assignee: pkg@FreeBSD.org

Having repo config like:

default: {
    enabled: yes,
    priority: 0,
    url: "https://example.com/freebsd/pkg/${ABI}/default",
    mirror_type: "none",
    signature_type: "none",
    fingerprints: "/usr/share/keys/pkg",
    env: {
        NETRC: "/usr/local/etc/pkg/.netrc"

basic authentication no longer works.
I've tried to see how libcurl treats .netrc files, but it seems the feature
must be explicitly enabled:

The bug is already reported on GitHub:

You are receiving this mail because:
You are the assignee for the bug.