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:   maintainer-feedback requested: [Bug 273134] ports-mgmt/pkg: pkg 1.20.5 ignores NETRC env variable
Message-ID:  <bug-273134-32340-kahPxMBoPg@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-273134-32340@https.bugs.freebsd.org/bugzilla/>
References:  <bug-273134-32340@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-pkg (Nobody)
<pkg@FreeBSD.org> for maintainer-feedback:
Bug 273134: ports-mgmt/pkg: pkg 1.20.5 ignores NETRC env variable
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273134



--- Description ---
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



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