Skip to content

Commit b95fb6e

Browse files
committed
refactor: cargo_generate_lockfile -> cargo_update.
1 parent 4b681c7 commit b95fb6e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
File renamed without changes.

Diff for: src/cargo/ops/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ pub use self::cargo_compile::{
77
pub use self::cargo_compile::{CompileFilter, FilterRule, LibRule, Packages};
88
pub use self::cargo_doc::{doc, DocOptions, OutputFormat};
99
pub use self::cargo_fetch::{fetch, FetchOptions};
10-
pub use self::cargo_generate_lockfile::generate_lockfile;
11-
pub use self::cargo_generate_lockfile::print_lockfile_changes;
12-
pub use self::cargo_generate_lockfile::update_lockfile;
13-
pub use self::cargo_generate_lockfile::UpdateOptions;
1410
pub use self::cargo_install::{install, install_list};
1511
pub use self::cargo_new::{init, new, NewOptions, NewProjectKind, VersionControl};
1612
pub use self::cargo_output_metadata::{output_metadata, ExportInfo, OutputMetadataOptions};
@@ -20,6 +16,10 @@ pub use self::cargo_read_manifest::{read_package, read_packages};
2016
pub use self::cargo_run::run;
2117
pub use self::cargo_test::{run_benches, run_tests, TestOptions};
2218
pub use self::cargo_uninstall::uninstall;
19+
pub use self::cargo_update::generate_lockfile;
20+
pub use self::cargo_update::print_lockfile_changes;
21+
pub use self::cargo_update::update_lockfile;
22+
pub use self::cargo_update::UpdateOptions;
2323
pub use self::fix::{fix, fix_exec_rustc, fix_get_proxy_lock_addr, FixOptions};
2424
pub use self::lockfile::{load_pkg_lockfile, resolve_to_string, write_pkg_lockfile};
2525
pub use self::registry::modify_owners;
@@ -44,7 +44,6 @@ pub(crate) mod cargo_compile;
4444
pub mod cargo_config;
4545
mod cargo_doc;
4646
mod cargo_fetch;
47-
mod cargo_generate_lockfile;
4847
mod cargo_install;
4948
mod cargo_new;
5049
mod cargo_output_metadata;
@@ -55,6 +54,7 @@ pub mod cargo_remove;
5554
mod cargo_run;
5655
mod cargo_test;
5756
mod cargo_uninstall;
57+
mod cargo_update;
5858
mod common_for_install_and_uninstall;
5959
mod fix;
6060
pub(crate) mod lockfile;

Diff for: triagebot.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ trigger_files = [
265265
]
266266

267267
[autolabel."Command-generate-lockfile"]
268-
trigger_files = ["src/bin/cargo/commands/generate_lockfile.rs", "src/cargo/ops/cargo_generate_lockfile.rs"]
268+
trigger_files = ["src/bin/cargo/commands/generate_lockfile.rs"]
269269

270270
[autolabel."Command-git-checkout"]
271271
trigger_files = ["src/bin/cargo/commands/git_checkout.rs"]
@@ -334,7 +334,7 @@ trigger_files = ["src/bin/cargo/commands/tree.rs", "src/cargo/ops/tree/"]
334334
trigger_files = ["src/bin/cargo/commands/uninstall.rs", "src/cargo/ops/cargo_uninstall.rs"]
335335

336336
[autolabel."Command-update"]
337-
trigger_files = ["src/bin/cargo/commands/update.rs"]
337+
trigger_files = ["src/bin/cargo/commands/update.rs", "src/cargo/ops/cargo_update.rs"]
338338

339339
[autolabel."Command-vendor"]
340340
trigger_files = ["src/bin/cargo/commands/vendor.rs", "src/cargo/ops/vendor.rs"]

0 commit comments

Comments
 (0)