Can't specify a relative path for collect source

Bug #1635263 reported by Matthew Williams
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mojo: Continuous Delivery for Juju
Invalid
Undecided
Unassigned
codetree
Confirmed
Low
Unassigned

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/cli.py", line 583, in run_with_args
    args.func(args)
  File "/usr/lib/python2.7/dist-packages/mojo/utils.py", line 305, in wrapped
    return method(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mojo/cli.py", line 312, in run_from_manifest
    manifest.run(project, workspace, args.stage)
  File "/usr/lib/python2.7/dist-packages/mojo/manifest.py", line 92, in run
    auto_repo=auto_repo)
  File "/usr/lib/python2.7/dist-packages/mojo/phase.py", line 221, in run
    collect_success = collect_config.build()
  File "/usr/lib/python2.7/dist-packages/codetree/config.py", line 212, in build
    error_free = all([f.result() for f in self.futures.values()])
  File "/usr/lib/python2.7/dist-packages/concurrent/futures/_base.py", line 404, in result
    return self.__get_result()
  File "/usr/lib/python2.7/dist-packages/concurrent/futures/_base.py", 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.