Skip to content
Discussion options

You must be logged in to vote

Maybe simplest wpuld just be to have an option which enables curl to handle download instead, with possibility to specify additional params.

I thought about adding support for using an external command for HTTP downloads, but the HTTP specification is huge and chezmoi has to set various headers for some requests (e.g. authenticated request to the GitHub API). The correct way to intercept HTTP requests is to use an HTTP proxy, and chezmoi already supports that through the HTTP_PROXY environment variable.

An alternative for you would be to use a run_before_ script that downloads the archives with curl and then use file:// URLs in .chezmoiexternal.

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@papanito
Comment options

@twpayne
Comment options

@papanito
Comment options

@twpayne
Comment options

Answer selected by papanito
@papanito
Comment options

@papanito
Comment options

@twpayne
Comment options

@papanito
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants