Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1486

Order-dependent resolution: exclude not respected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0-rc1
    • None
    • Core
    • None

    Description

      To repro, create an ivy.xml which looks like this (see the attached one for an real-world example that you can test out):
      dependency A 1.1
      dependency X 1.2
      exclude Y
      -------
      dependency A 1.1's depends on:
      dependency X 1.1

      Dependency X 1.1's depends on:
      dependency Y 1.1

      Dependency X 1.2's depends on:
      dependency Y 1.2
      ------------------------------
      In this case, we will get Y 1.2. But if we swap the order of the dependencies in our ivy.xml, we'll get Y 1.1. I think 1.1 is correct, because we've excluded 1.2.

      Attachments

        1. 0001-Fix-IVY-1486.patch
          46 kB
          David Turner
        2. 0001-Make-doesCallersExclude-check-only-callers-of-this-v.patch
          18 kB
          David Turner
        3. ivy-4sq.xml
          2 kB
          David Turner
        4. ivy-exclude-finagle.xml
          2 kB
          Jeff Jenkins
        5. ivy-min2.xml
          2 kB
          David Turner

        Issue Links

          Activity

            People

              antoine@apache.org Antoine Levy-Lambert
              dturner-tw David Turner
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: