Skip to content

Commit

Permalink
fix(rust): normalize root path
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammisuli committed Nov 30, 2023
1 parent 1e01667 commit a2f0e9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/rust/src/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
CreateNodes,
ProjectConfiguration,
RawProjectGraphDependency,
normalizePath,
workspaceRoot,
} from '@nx/devkit';
import {
Expand Down Expand Up @@ -35,7 +36,7 @@ export const createNodes: CreateNodes = [

for (const pkg of cargoPackages) {
if (!isExternal(pkg)) {
const root = dirname(relative(ctx.workspaceRoot, pkg.manifest_path));
const root = normalizePath(dirname(relative(ctx.workspaceRoot, pkg.manifest_path)));
projects[root] = {
root,
name: pkg.name,
Expand Down

0 comments on commit a2f0e9e

Please sign in to comment.