Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Modify build.Instance before building it? #440

Answered by mpvl
shykes asked this question in General
Discussion options

You must be logged in to vote

You can modify build.Instance files, like adding additional Files, at will. The compiler will only look at Files.

It is also fine to modify the contents of existing Files.

You do need to ensure the Imports maps is updated accordingly to ensured imported packages are loaded as well if the added files introduce any imports, I believe. I may remove this requirement in the future, but for now it can't hurt to add it.

More info:
The building goes in two stages: first it collects the set of files, then it converts those to syntax trees in Files.

By the time load is done, all is converted to Files, so it safe to ignore any of the other file fields.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by shykes
Comment options

You must be logged in to vote
1 reply
@mpvl
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants