Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2023 12:14:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   [Bug 273134] ports-mgmt/pkg: pkg 1.20.5 ignores NETRC env variable
Message-ID:  <bug-273134-32340@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273134

            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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-273134-32340>