Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-454

Definition-level parent-child references-by-name fail in 1.4.0 but not in 1.3.5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.5
    • Core features
    • None
    • OS X 10.6.3, JRuby 1.4.0 (but it shouldn't matter)

    Description

      A buildfile like this one:

      define "root" do
      define "child" do
      puts project('root')._('foo.resource')
      end
      end

      will work fine on buildr 1.3.5. However, it fails with a circular dependency error on 1.4.0 RC4:

      RuntimeError : Circular dependency detected: TOP => root => root:child => root
      /private/tmp/buildr-problem/buildfile:3

      I don't think this need block the release because the following workaround succeeds in both:

      define "root" do
      define "child" do
      puts project.parent._('foo.resource')
      end
      end

      Attachments

        1. circular_project_deps.patch
          2 kB
          Pepijn Van Eeckhoudt

        Issue Links

          Activity

            People

              toulmean Antoine Toulme
              rsutphin Rhett Sutphin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: