Skip to content

Commit c1e359a

Browse files
committed
FIX: use correct ProjectRelativePath crate
Signed-off-by: AidCheng <cn.aiden.cheng@gmail.com>
1 parent ee8379c commit c1e359a

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

api-model/src/buck2/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::buck2::{status::Status, types::ProjectRelativePath};
1515

1616
/// Parameters required to build a task.
1717
#[allow(dead_code)]
18-
#[derive(Debug)]
18+
#[derive(Debug, Deserialize, Serialize)]
1919
pub struct TaskBuildRequest {
2020
/// The repository base path
2121
pub repo: String,

orion/buck/owners.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010

1111
use std::collections::HashMap;
1212

13+
use api_model::buck2::types::ProjectRelativePath;
1314
use serde::{Deserialize, Serialize};
1415

15-
use crate::types::{ProjectRelativePath, TargetLabel};
16+
use crate::types::{TargetLabel};
1617

1718
/// The output of running `buck2 uquery --json owner(...)`.
1819
/// Maps file paths to the targets that own them.

orion/buck/run.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ use std::{
1414
};
1515

1616
use anyhow::{anyhow, Context as _};
17+
use api_model::buck2::types::ProjectRelativePath;
1718
use audit::{audit_cell_arguments, audit_config_arguments};
1819
use td_util::command::{create_at_file_arg, with_command};
1920
use tracing::info;
2021

2122
use crate::{
2223
cells::CellInfo,
23-
types::{Package, ProjectRelativePath, TargetPattern},
24+
types::{Package, TargetPattern},
2425
ExitStatusExt,
2526
};
2627

0 commit comments

Comments
 (0)