mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
docs(cargo-package): alwasy include the lockfile (#15067)
### What does this PR try to resolve? This was overlooked in #14815. ### How should we test and review this PR? ``` cargo build target/debug/cargo help package # and read the manpage ```
This commit is contained in:
commit
d54c5d404a
@ -26,9 +26,9 @@ stored in the `target/package` directory. This performs the following steps:
|
|||||||
- The original `Cargo.toml` file is rewritten and normalized.
|
- The original `Cargo.toml` file is rewritten and normalized.
|
||||||
- `[patch]`, `[replace]`, and `[workspace]` sections are removed from the
|
- `[patch]`, `[replace]`, and `[workspace]` sections are removed from the
|
||||||
manifest.
|
manifest.
|
||||||
- `Cargo.lock` is automatically included if the package contains an
|
- `Cargo.lock` is always included. When missing, a new lock file will be
|
||||||
executable binary or example target. {{man "cargo-install" 1}} will use the
|
generated. {{man "cargo-install" 1}} will use the packaged lock file if
|
||||||
packaged lock file if the `--locked` flag is used.
|
the `--locked` flag is used.
|
||||||
- A `.cargo_vcs_info.json` file is included that contains information
|
- A `.cargo_vcs_info.json` file is included that contains information
|
||||||
about the current VCS checkout hash if available, as well as a flag if the
|
about the current VCS checkout hash if available, as well as a flag if the
|
||||||
worktree is dirty.
|
worktree is dirty.
|
||||||
|
@ -26,9 +26,9 @@ DESCRIPTION
|
|||||||
o [patch], [replace], and [workspace] sections are removed from the
|
o [patch], [replace], and [workspace] sections are removed from the
|
||||||
manifest.
|
manifest.
|
||||||
|
|
||||||
o Cargo.lock is automatically included if the package contains an
|
o Cargo.lock is always included. When missing, a new lock file will
|
||||||
executable binary or example target. cargo-install(1) will use the
|
be generated. cargo-install(1) will use the packaged lock file if
|
||||||
packaged lock file if the --locked flag is used.
|
the --locked flag is used.
|
||||||
|
|
||||||
o A .cargo_vcs_info.json file is included that contains information
|
o A .cargo_vcs_info.json file is included that contains information
|
||||||
about the current VCS checkout hash if available, as well as a
|
about the current VCS checkout hash if available, as well as a
|
||||||
|
@ -21,9 +21,9 @@ stored in the `target/package` directory. This performs the following steps:
|
|||||||
- The original `Cargo.toml` file is rewritten and normalized.
|
- The original `Cargo.toml` file is rewritten and normalized.
|
||||||
- `[patch]`, `[replace]`, and `[workspace]` sections are removed from the
|
- `[patch]`, `[replace]`, and `[workspace]` sections are removed from the
|
||||||
manifest.
|
manifest.
|
||||||
- `Cargo.lock` is automatically included if the package contains an
|
- `Cargo.lock` is always included. When missing, a new lock file will be
|
||||||
executable binary or example target. [cargo-install(1)](cargo-install.html) will use the
|
generated. [cargo-install(1)](cargo-install.html) will use the packaged lock file if
|
||||||
packaged lock file if the `--locked` flag is used.
|
the `--locked` flag is used.
|
||||||
- A `.cargo_vcs_info.json` file is included that contains information
|
- A `.cargo_vcs_info.json` file is included that contains information
|
||||||
about the current VCS checkout hash if available, as well as a flag if the
|
about the current VCS checkout hash if available, as well as a flag if the
|
||||||
worktree is dirty.
|
worktree is dirty.
|
||||||
|
@ -35,9 +35,9 @@ manifest.
|
|||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
\h'-04'\(bu\h'+02'\fBCargo.lock\fR is automatically included if the package contains an
|
\h'-04'\(bu\h'+02'\fBCargo.lock\fR is always included. When missing, a new lock file will be
|
||||||
executable binary or example target. \fBcargo\-install\fR(1) will use the
|
generated. \fBcargo\-install\fR(1) will use the packaged lock file if
|
||||||
packaged lock file if the \fB\-\-locked\fR flag is used.
|
the \fB\-\-locked\fR flag is used.
|
||||||
.RE
|
.RE
|
||||||
.sp
|
.sp
|
||||||
.RS 4
|
.RS 4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user