Skip to content

Using FileManager in Manifest #6128

Discussion options

You must be logged in to vote

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Ernest0-Production
Comment options

@danieleformichelli
Comment options

@Ernest0-Production
Comment options

Answer selected by Ernest0-Production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type:need/problem Report needs or problems you came across that are not bugs
3 participants
Converted from issue

This discussion was converted from issue #6125 on March 27, 2024 10:40.