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

download(artifact(...)=>url) broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.3
    • Dependency management
    • None
    • buildr trunk (rev 679619)

    Description

      The download method that can be used to override the download URL for artifacts is broken since revision 663405 of the trunk.

      Error message: undefined method `to_sym' for #<Buildr::Artifact:0xb74745ac>

      My analysis of the problem is as follows.
      The 'download' method in common.rb calls the 'file' method (e.g., "file(args.keys.first)").
      The 'file' method in project.rb calls the path_to method (e.g., "Rake::FileTask.define_task(path_to(task_name))").
      The 'path_to' method in project.rb calls the 'layout.expand' method (e.g., "File.expand_path(layout.expand(*names), base_dir)").
      The 'expand' method in project.rb calls the 'to_sym' methods of its arguments, even though *args can be a one-element array containing a Buildr::Artifact instance that does not understand the 'to_sym' call (e.g., "args.compact.reject

      { |s| s.to_s.empty? }

      .map(&:to_sym)").

      Attachments

        1. BUILDR-106.spec_patch.from_rev_679619
          3 kB
          Antoine Contal
        2. BUILDR-106.lib_patch.from_rev_679619
          0.5 kB
          Antoine Contal

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lacton Antoine Contal
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: