fix: add back old case in linker to close: https://github.com/bazelbu… #3058
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…ild/rules_nodejs/issues/3054
PR Checklist
Please check if your PR fulfills the following requirements:
I'm not as familiar with how to write tests for the linker but given some of the cases were removed on a refactor we might want to define which cases to support somewhere and write tests for them. I would be happy to help with this when I have time. It seems that none of the rules in this repo hit that case and that's why it went unnoticed.
Also not sure if other cases that the linker used to support are missing, just happened to to upgrading some rules and noticed a break between 4.4.1 and 4.4.2 with this case. Or the only case that changed was the one I used.
PR Type
What kind of change does this PR introduce?
What is the current behavior?
There was a refactor to the linker between 4.4.1 and 4.4.2 and a case seems to have been dropped.
Issue Number:
#3054
What is the new behavior?
restore behaviour to the linker that was there before the refactor. This fixes the issue 3054.
Does this PR introduce a breaking change?
Other information
I don't want it to seem like I'm blaming the refactor, it seems as though the rules I was working on used a case others have not touched. Hopefully writing a test case for this will stop this from happening again.