Using FileManager in Manifest #6128
-
What problem or need do you have?Hi! Is it bad form or dangerous to use a Will caching the manifest prevent the manifest from running again? Potential solutionNo response macOS version13.6.3 Tuist version4.6.0 Xcode version15.2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey! Doing side effects and reading the file system is not recommended to do in your manifests. We cache the JSON manifest representation, so we don't have to compile them on every generate, so doing side effects in them will lead to indeterministic You can use environment variables to pass in state and then read that state in your manifest file. |
Beta Was this translation helpful? Give feedback.
Hey!
Doing side effects and reading the file system is not recommended to do in your manifests. We cache the JSON manifest representation, so we don't have to compile them on every generate, so doing side effects in them will lead to indeterministic
tuist generate
invocations.You can use environment variables to pass in state and then read that state in your manifest file.