Skip to content

bug: compatibleWith does not work when declaring multiple packages with both target versions and no target versions #345

@LisoUseInAIKyrios

Description

@LisoUseInAIKyrios

Bug description

compatibleWith("app1", "app2"("1.2.3"))

Does not work, and is a compile error.
The compatibleWith method has two overloads of varargs, one with varargs of no version restrain and another with varargs with a version restrain. So mixing the two fails to compile since they're different types.
 

compatibleWith("app1"(), "app2"("1.2.3"))

Does compile, but app1 is always rejected as incompatible no matter what version app is patched.

Acknowledgements

  • I have checked all open and closed bug reports and this is not a duplicate.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug reportSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions