Skip to content

Commit

Permalink
Additionally passing in the AbsolutePaths to mafinest file and and ro…
Browse files Browse the repository at this point in the history
…ot manifest file
  • Loading branch information
Buju77 committed Aug 10, 2023
1 parent 84302ff commit b75cf2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/TuistLoader/Loaders/ManifestLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,12 @@ public class ManifestLoader: ManifestLoading {

do {
var envVars = environment.manifestLoadingVariables
envVars["TUIST_MANIFEST_PATH"] = "\(path)"

// Pass in the flag to manifest file if it is being loaded as the root manifest or from a subfolder like Pods/ folder
if let rootPath, manifest == .project && rootPath == path {
envVars["TUIST_IS_ROOT_MANIFEST"] = "true"
envVars["TUIST_ROOT_MANIFEST_PATH"] = "\(rootPath)"
}

let string = try System.shared.capture(arguments, verbose: false, environment: envVars)
Expand Down

0 comments on commit b75cf2e

Please sign in to comment.