I'm not in front of my computer right now, but as far as I recall, there is a note in the preamble of flymake.el asking maintainers not to use functionality incompatible with the given emacs dependency.

The solution is either to abide or to create a new package that houses said functionality and then make that a dependency.

João

On Tue, Feb 8, 2022, 08:35 Robert Pluim <rpluim@gmail.com> wrote:
>>>>> On Tue, 08 Feb 2022 08:28:21 +0000, Brian Leung <leungbk@posteo.net> said:

    Brian> I'm not sure how this kind of thing is usually handled, but for this
    Brian> specific fix, I think it's worth bumping the version since there are
    Brian> probably a decent chunk of people on Emacs <= 27 who will otherwise
    Brian> encounter an issue with Eglot (one guy reported this yesterday on the
    Brian> mailing list).

If thatʼs the case we should change Package-Requires as well. And
someone™ should test with emacs-2{6,7}.

Robert
--