-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcargo_vendor.service
More file actions
110 lines (109 loc) · 6.63 KB
/
cargo_vendor.service
File metadata and controls
110 lines (109 loc) · 6.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="UTF-8"?>
<service name="cargo_vendor">
<summary>OBS Source Service to vendor all crates.io and dependencies for a Rust project</summary>
<description><![CDATA[This service extracts a Rust application source,
searches for a Rust application containing a Cargo.toml file,
download all crates.io and dependecies,
and creates a vendor.tar[.<tar compression>] to be committed allowing fully offline
builds of Rust applications.]]></description>
<parameter name="strategy">
<description>Legacy argument, no longer used. Values: cargo_vendor. Default: cargo_vendor.</description>
</parameter>
<parameter name="changesgenerate">
<description>Whether to generate or update a changelog file or not. Default: false. To be passed to Roast SCM.</description>
<allowedvalues>true</allowedvalues>
<allowedvalues>false</allowedvalues>
</parameter>
<parameter name="changesauthor">
<description>Author to include during the changelog generation. To be passed to Roast SCM.</description>
</parameter>
<parameter name="changesemail">
<description>Email of author to include during the changelog generation. To be passed to Roast SCM.</description>
</parameter>
<parameter name="changesoutfile">
<description> Whether to specify a path to the changes file. Otherwise, it is the current directory and the
filename is the same filename prefix of the generated tarball e.g. `source.tar.xz` will have `source.changes`
file. If file exists, append the newest changes to the top-most part of the text file. To be passed to Roast SCM.</description>
</parameter>
<parameter name="set-version">
<description>Whether to hard code the version or not. Set it to hard code one, otherwise, it will use the generated version internally. To be passed to Roast SCM.</description>
</parameter>
<parameter name="set-name">
<description>Whether to hard code the name or not. Set it to hard code one, otherwise, it will use the generated name internally. To be passed to Roast SCM.</description>
</parameter>
<parameter name="revision">
<description>Revision or tag. It can also be a specific commit hash. To be passed to Roast SCM.</description>
</parameter>
<parameter name="versionrewriteregex">
<description>Pass a regex with capture groups. Required by `versionrewritepattern` flag. Each capture group is labelled through increments of 1. To be passed to Roast SCM.</description>
</parameter>
<parameter name="versionrewritepattern">
<description>Pass a pattern from the capture groups from `versionrewriteregex` flag. To be passed to Roast SCM.</description>
</parameter>
<parameter name="method">
<description>Whether to use vendor or the registry. Default: vendor</description>
<allowedvalues>registry</allowedvalues>
<allowedvalues>vendor</allowedvalues>
</parameter>
<parameter name="src">
<description>Where to find sources. Source is either a directory or a source tarball or a URL to a remote git repository. Aliases: srctar, srcdir, target, url</description>
</parameter>
<parameter name="outdir">
<description>Where to output vendor.tar* and cargo_config if method is vendor and registry.tar* if method is registry. If using with `osc service`, this option is automatically appended.</description>
</parameter>
<parameter name="custom-root">
<description>Whether you want to manually set the root of the
project. Useful with a combination with `--manifest-path` (aliased as `--cargotoml`) or
`--no-root-manifest`.
</description>
</parameter>
<parameter name="update">
<description>Update dependencies or not. Default: true</description>
<allowedvalues>false</allowedvalues>
<allowedvalues>true</allowedvalues>
</parameter>
<parameter name="no-root-manifest">
<description>Available only if `--method` is set to registry. If a
project has no root manifest, this flag is useful for those situations
to set the manifest path manually. Useful in combination with
`--manifest-path` (aliased as `--cargotoml`) flag. Default: false
</description>
<allowedvalues>false</allowedvalues>
<allowedvalues>true</allowedvalues>
</parameter>
<parameter name="tag">
<description>Tag some files for multi-vendor and multi-cargo_config projects</description>
</parameter>
<parameter name="compression">
<description>What compression algorithm to use. Set to `not` if you just want a normal tarball with no compression. Default: zst</description>
<allowedvalues>zst</allowedvalues>
<allowedvalues>gz</allowedvalues>
<allowedvalues>xz</allowedvalues>
<allowedvalues>bz2</allowedvalues>
<allowedvalues>not</allowedvalues>
</parameter>
<parameter name="cargotoml">
<description>Other cargo manifest files to sync with vendor or registry. Behaviour between methods changes. Consult the documentation.</description>
</parameter>
<parameter name="i-accept-the-risk">
<description>A list of rustsec-id's to ignore. By setting this value, you acknowledge that this issue does not affect your package and you should be exempt from resolving it.</description>
</parameter>
<parameter name="filter">
<description>Available only if `--method` is set to vendor. EXPERIMENTAL: Reduce vendor-tarball size by filtering out non-Linux dependencies. Default: false</description>
<allowedvalues>false</allowedvalues>
<allowedvalues>true</allowedvalues>
</parameter>
<parameter name="respect-lockfile">
<description>Whether to respect Cargo.lock or lockfiles by passing the `--locked` flag. Default: false</description>
<allowedvalues>false</allowedvalues>
<allowedvalues>true</allowedvalues>
</parameter>
<parameter name="versioned-dirs">
<description>Available only if `--method` is set to vendor. Whether to use the `--versioned-dirs` flag of cargo-vendor. Default: true</description>
<allowedvalues>false</allowedvalues>
<allowedvalues>true</allowedvalues>
</parameter>
<parameter name="update-crate">
<description>Set of specific crates to update. If not empty, it will set the global update flag to false. You can specify a valid version string by adding a `@` after the crate name e.g. `foo@1.2.3`. You can also do recursive updates of a crate by appending `recursive` to `@` e.g. `foo@recursive`. However, recursive can't be used with precise. You can specify a manifest path to update a package with `+` e.g. `foo@1.0+foo/better/Cargo.toml`. See `cargo help update` for info about how to update specific crates.</description>
</parameter>
</service>