[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
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273134

            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:
https://curl.se/libcurl/c/CURLOPT_NETRC.html

The bug is already reported on GitHub:
https://github.com/freebsd/pkg/issues/2170

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