mirror of
https://github.com/vrc-get/vrc-get.git
synced 2026-06-21 09:58:08 +00:00
1.8 KiB
1.8 KiB
Repository List file format
This document describes the format of the repository list file used in ALCOM / vrc-get.
File format
- The file is a UTF-8 encoded text file.
- For each line, text after '#' will be ignored as a comment.
- Each line contains a repository URL, or empty.
- Each line is trimmed before processing. (this mean any line only with spaces will be ignored)
- Each repository line should only contain a valid URL.
- The URL schema must be
http,https, orvcc.\ Other schemas are ignored and might be recognized for other purposes in the future. - If the URL is a
httporhttpsURL, the URL represents a VPM repository without headers. - If the URL is a
vccURL, the URL should be a VCC URL to add VPM repository, which is described below.
This notation is used to express the repository with headers.
VCC URL format
The VCC URL to add VPM Repository will be a valid URL with the following format:
- schema must be
vcc - the host part must be
vpm - the path part must be
/addRepo - the query part must contain single
urlparameter which represents the repository URL to add. - the query part may contain
headers[]parameter with represents the HTTP headers for the repository.- query value will be split by
:and prior part will be the header name and the rest will be the header value.
- query value will be split by
Examples
# This is a comment
http://example.com/repo
https://example.com/repo
vcc://vpm/addRepo?url=http://example.com/repo&headers[]=header-name:header-value
This file represents a repository list with the following repositories:
http://example.com/repohttps://example.com/repohttp://example.com/repowith a custom headerheader-name:header-value
Another example may be found at the repositories.txt at the root of this repository.