Skip to content

Commit

Permalink
fix sub project removal
Browse files Browse the repository at this point in the history
  • Loading branch information
pchalamet committed Jan 16, 2025
1 parent a1a2bc0 commit 6abc19e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Terrabuild/Core/Configuration.fs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ let read (options: ConfigOptions.Options) =
let loadProjectDef projectId =
let projectDir = FS.combinePath options.Workspace projectId
let projectFile = FS.combinePath projectDir "PROJECT"
let slashedProjectDir = $"{projectDir}/"
let slashedProjectId = $"{projectId}/"

let projectContent = File.ReadAllText projectFile
let projectConfig =
Expand Down Expand Up @@ -282,11 +282,11 @@ let read (options: ConfigOptions.Options) =
let projectDependencies =
projectInfo.Dependencies
|> Set.map (fun dep -> FS.workspaceRelative options.Workspace projectDir dep)
|> Set.filter (fun dep -> dep |> String.startsWith slashedProjectDir |> not)
|> Set.filter (fun dep -> dep |> String.startsWith slashedProjectId |> not)
let projectLinks =
projectInfo.Links
|> Set.map (fun dep -> FS.workspaceRelative options.Workspace projectDir dep)
|> Set.filter (fun dep -> dep |> String.startsWith slashedProjectDir |> not)
|> Set.filter (fun dep -> dep |> String.startsWith slashedProjectId |> not)

let projectTargets = projectConfig.Targets

Expand Down

0 comments on commit 6abc19e

Please sign in to comment.