Skip to content

Commit

Permalink
fix(@turbo/repository): fix breaking API changes from turbo core (#7373)
Browse files Browse the repository at this point in the history
Broken from c75674a
  • Loading branch information
mehulkar committed Feb 13, 2024
1 parent 3029525 commit 2e9eed4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/turbo-repository/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use turbopath::{AbsoluteSystemPath, AnchoredSystemPathBuf};
use turborepo_repository::{
change_mapper::{ChangeMapper, PackageChanges},
inference::RepoState as WorkspaceState,
package_graph::{PackageGraph, PackageNode, WorkspaceName, WorkspacePackage, ROOT_PKG_NAME},
package_graph::{PackageGraph, PackageName, PackageNode, WorkspacePackage, ROOT_PKG_NAME},
};
mod internal;

Expand Down Expand Up @@ -72,7 +72,7 @@ impl Package {
graph: &PackageGraph,
workspace_path: &AbsoluteSystemPath,
) -> Vec<Package> {
let node = PackageNode::Workspace(WorkspaceName::Other(self.name.clone()));
let node = PackageNode::Workspace(PackageName::Other(self.name.clone()));
let ancestors = match graph.immediate_ancestors(&node) {
Some(ancestors) => ancestors,
None => return vec![],
Expand Down Expand Up @@ -178,8 +178,8 @@ impl Workspace {
let mut serializable_packages: Vec<Package> = packages
.into_iter()
.filter(|p| match &p.name {
WorkspaceName::Root => false,
WorkspaceName::Other(name) => name != ROOT_PKG_NAME,
PackageName::Root => false,
PackageName::Other(name) => name != ROOT_PKG_NAME,
})
.map(|p| {
let package_path = workspace_root.resolve(&p.path);
Expand Down

0 comments on commit 2e9eed4

Please sign in to comment.