McStasMcXtrace / mccode-antlr

McCode grammar implemented with ANTLR4
1 stars 0 forks source link

Use of `mccode-pooch` can lead to out-of-sync library files #57

Closed g5t closed 2 months ago

g5t commented 2 months ago

Using 'main' in https://github.com/McStasMcXtrace/mccode-antlr/blob/f18a8669bd77e24075bd0ad70dbdedcd33dd8857/mccode_antlr/reader/registry.py#L389-L395

can cause de-sync issues for up to a day when the main branch of McCode is updated.

Instead, mccode_antlr should leverage the tagged versions of McCode (replicated in mccode-pooch) to have control over the version used.

A configuration variable could be used to store the version, allowing the user to force a specific tag. Some utility may be necessary to check/change/update the used version, and cleanup any disused component or library files.