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

Exposing some parent metadata (organisation, module, revision, branch) as properties.

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0-RC1
    • Component/s: Core
    • Labels:

      Description

      It can be helpful to expose some parent metadata as properties. As module inheritance support multiple parent we should have something like :

      • ivy.parents.count : number of parents module
      • ivy.parent[index].organisation : set to the organisation name found in the parent ivyfile which was used for resolve
      • ivy.parent[index].module : set to the module name found in the parent ivyfile which was used for resolve
      • ivy.parent[index].revision : set to the revision name found in the parent ivyfile which was used for resolve
      • ivy.parent[index].branch : set to the branch name found in the parent ivyfile which was used for resolve

      Where index represent the index of extends module.

      1. IVY-1288-alternative.patch
        6 kB
        Jean-Louis Boudart
      2. IVY-1288.patch
        5 kB
        Jean-Louis Boudart

        Activity

        Hide
        hibou Nicolas Lalevée added a comment -

        First patch applied. If the alternative patch was applied, it was then unclear what would happend to the variables if several ivy files were loaded and merged during the resolve process.
        Thank you.

        Show
        hibou Nicolas Lalevée added a comment - First patch applied. If the alternative patch was applied, it was then unclear what would happend to the variables if several ivy files were loaded and merged during the resolve process. Thank you.
        Hide
        jboudart Jean-Louis Boudart added a comment -

        Here is an alternative implementation exposing parent properties earlier (at parsing level) which allow ivy to directly use it.

        Show
        jboudart Jean-Louis Boudart added a comment - Here is an alternative implementation exposing parent properties earlier (at parsing level) which allow ivy to directly use it.
        Hide
        jboudart Jean-Louis Boudart added a comment -

        First implementation inspired by code in IvyResolve Task

        Show
        jboudart Jean-Louis Boudart added a comment - First implementation inspired by code in IvyResolve Task

          People

          • Assignee:
            hibou Nicolas Lalevée
            Reporter:
            jboudart Jean-Louis Boudart
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development