Ivy
  1. Ivy
  2. IVY-1288

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

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major 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.patch
        5 kB
        Jean-Louis Boudart
      2. IVY-1288-alternative.patch
        6 kB
        Jean-Louis Boudart

        Activity

        Hide
        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
        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
        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
        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
        Jean-Louis Boudart added a comment -

        First implementation inspired by code in IvyResolve Task

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development