As described in docs
Once these rules are executed we pick the lowest line number as the match (which replicates first-match-wins).
In fact, we use line number for rank for now. (Github)
However, when we use .include directives to include some other remap config files, there will be overlapping and conflict with the line numbers in each other file.
When parsing remap1.config, first entry in remap1.config is inserted with rank 0, second with rank 1. Then parsing remap2.config, the single entry is inserted with rank 0 again. So the entry in remap2.config is overlapped with first entry in remap1.config and takes precedence with second entry. This would confuse customers.
I'm considering using a global line number to count each entry, and follow the "first-match-wins" rules. I test with my local environment and it works. However, we are using the line number for debugging output(Github), so the current count variant cln is still needed. This would mess up the code. Appreciate for any suggestions to this issue.