Can't specify a relative path for collect source

Bug #1635263 reported by Matthew Williams
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mojo: Continuous Delivery for Juju

Bug Description

I have a collect file that contains a single line:

foobar-charm cdo/mojo-spec/builtcharms/foobar-charm/

This fails with the following error:

2016-10-20 13:34:01 [ERROR] Unknown error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mojo/", line 583, in run_with_args
  File "/usr/lib/python2.7/dist-packages/mojo/", line 305, in wrapped
    return method(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mojo/", line 312, in run_from_manifest, workspace, args.stage)
  File "/usr/lib/python2.7/dist-packages/mojo/", line 92, in run
  File "/usr/lib/python2.7/dist-packages/mojo/", line 221, in run
    collect_success =
  File "/usr/lib/python2.7/dist-packages/codetree/", line 212, in build
    error_free = all([f.result() for f in self.futures.values()])
  File "/usr/lib/python2.7/dist-packages/concurrent/futures/", line 404, in result
    return self.__get_result()
  File "/usr/lib/python2.7/dist-packages/concurrent/futures/", line 356, in __get_result
    raise self._exception
FileManipulationError: Only files and directories can be copied

It works fine if I use the full path:
foobar-charm /home/ubuntu/spec/cdo/mojo-spec/builtcharms/foobar-charm/

Revision history for this message
Jacek Nykis (jacekn) wrote :

It looks like a bug in codetree. Added that and marked as invalid in mojo

Changed in mojo:
status: New → Invalid
Changed in codetree:
status: New → Confirmed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.