Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/feature/is-root-manifest-file'…
Browse files Browse the repository at this point in the history
… into feature/tmp-root-manifest-flag
  • Loading branch information
Yen-Chia Lin committed Aug 10, 2023
2 parents 6fdbedc + b75cf2e commit ad984f9
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 ad984f9

Please sign in to comment.