curl 8.11.0 breaks git operations with .netrc
Package Information
- Package name: curl
- Package version: 8.11.0
- Alpine version: 3.20.3
- Alpine architecture: x86_64
Summary
curl 8.11.0 has a bug when using .netrc file and causes following error:
fatal: unable to access '<https://git/repository/url>': .netrc parser error
Upstream issue: https://github.com/curl/curl/issues/15496
Steps to reproduce
Dockerfile
:
# syntax = docker/dockerfile:1
FROM alpine:3.20
RUN apk add --no-cache git curl
RUN --mount=type=secret,id=netrc,target=/root/.netrc \
git clone https://github.com/githubtraining/training-manual.git
$ docker build --secret id=netrc,src=$(HOME)/.netrc .
Edited by Atsushi Watanabe