maintainer-feedback requested: [Bug 273134] ports-mgmt/pkg: pkg 1.20.5 ignores NETRC env variable
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 273134] ports-mgmt/pkg: pkg 1.20.5 ignores NETRC env variable"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Aug 2023 12:14:34 UTC
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=273134
--- 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