Skip to content

Comments

Change: Include .nml, .lng, and custom_tags.txt files in -M output#417

Open
SpaceManiac wants to merge 1 commit intoOpenTTD:masterfrom
SpaceManiac:patch/lang-in-depfile
Open

Change: Include .nml, .lng, and custom_tags.txt files in -M output#417
SpaceManiac wants to merge 1 commit intoOpenTTD:masterfrom
SpaceManiac:patch/lang-in-depfile

Conversation

@SpaceManiac
Copy link

Depfile output is useful, but it's bad form for it to be incomplete. Changes to input .nml file, the .lng files, the directory globbed to discover .lng files, and (if it exists) custom_tags.txt should all trigger builds, so include them in the -M output.

A remaining corner case is that the first-time creation of custom_tags.txt is not caught.



def read_extra_commands(custom_tags_file):
def read_extra_commands(custom_tags_file, dependencies: list[str]):
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

: list[str] annotation included out of habit to make autocomplete work. Can trash it if it's too against the grain here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant