Bogus circular dependency error with nested projects and relative references
----------------------------------------------------------------------------

                 Key: BUILDR-320
                 URL: https://issues.apache.org/jira/browse/BUILDR-320
             Project: Buildr
          Issue Type: Bug
          Components: Core features
    Affects Versions: 1.3.4
            Reporter: Rhett Sutphin
            Priority: Minor


With the following buildfile, you will get a circular dependency error, even 
though there aren't any circular dependencies.

define "whole" do
  define 'sub' do
    define 'C' do
      compile.with project('sub:B')
    end
    
    define 'A' do
    end

    define 'B' do
      compile.with project('sub:A')
    end
  end
end

The error is "Circular dependency detected: TOP => whole:sub => whole:sub:C => 
whole:sub".  It happens in 1.3.4 and the current trunk, but not in 1.3.3.

You can work around it by using the full names for the projects (e.g., 
project('whole:sub:A')) or by ordering the project definitions in their 
dependency order (A, B, C in this case).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to