Skip to content

Commit 2e9eed4

Browse files
authored
fix(@turbo/repository): fix breaking API changes from turbo core (#7373)
Broken from c75674a
1 parent 3029525 commit 2e9eed4

File tree

1 file changed

+4
-4
lines changed
  • packages/turbo-repository/rust/src

1 file changed

+4
-4
lines changed

packages/turbo-repository/rust/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use turbopath::{AbsoluteSystemPath, AnchoredSystemPathBuf};
99
use turborepo_repository::{
1010
change_mapper::{ChangeMapper, PackageChanges},
1111
inference::RepoState as WorkspaceState,
12-
package_graph::{PackageGraph, PackageNode, WorkspaceName, WorkspacePackage, ROOT_PKG_NAME},
12+
package_graph::{PackageGraph, PackageName, PackageNode, WorkspacePackage, ROOT_PKG_NAME},
1313
};
1414
mod internal;
1515

@@ -72,7 +72,7 @@ impl Package {
7272
graph: &PackageGraph,
7373
workspace_path: &AbsoluteSystemPath,
7474
) -> Vec<Package> {
75-
let node = PackageNode::Workspace(WorkspaceName::Other(self.name.clone()));
75+
let node = PackageNode::Workspace(PackageName::Other(self.name.clone()));
7676
let ancestors = match graph.immediate_ancestors(&node) {
7777
Some(ancestors) => ancestors,
7878
None => return vec![],
@@ -178,8 +178,8 @@ impl Workspace {
178178
let mut serializable_packages: Vec<Package> = packages
179179
.into_iter()
180180
.filter(|p| match &p.name {
181-
WorkspaceName::Root => false,
182-
WorkspaceName::Other(name) => name != ROOT_PKG_NAME,
181+
PackageName::Root => false,
182+
PackageName::Other(name) => name != ROOT_PKG_NAME,
183183
})
184184
.map(|p| {
185185
let package_path = workspace_root.resolve(&p.path);

0 commit comments

Comments
 (0)