[!exec:zip] skip 'zip not found in $PATH'
exec zip -r www/archive.zip archive

httpd www

# test that chezmoi reads external zip archives from .chezmoiexternal.json
chezmoi apply --force
cmp $HOME/.dir/dir/file golden/dir/file

-- archive/dir/file --
# contents of dir/file
-- golden/dir/file --
# contents of dir/file
-- home/user/.local/share/chezmoi/.chezmoiexternal.json --
{
    ".dir": {
        "type": "archive",
        "url": "{{ env "HTTPD_URL" }}/archive.zip",
        "stripComponents": 1
    }
}
-- www/.keep --
