Skip to content

recursive shed_diff with directories not yet in Tool Shed#208

Merged
jmchilton merged 1 commit intogalaxyproject:masterfrom
peterjc:recursive_diff
May 15, 2015
Merged

recursive shed_diff with directories not yet in Tool Shed#208
jmchilton merged 1 commit intogalaxyproject:masterfrom
peterjc:recursive_diff

Conversation

@peterjc
Copy link
Contributor

@peterjc peterjc commented May 14, 2015

Previously this error condition would mean a recursive planemo shed_diff would fail on repository not yet uploaded to the Tool Shed. It now prints an error message but continues.

Resolves GitHub issue #201

TODO: Ensure that shed_diff on a single repository gives an error return code, e.g.

$ planemo shed_diff ~/repositories/pico_galaxy/tools/seq_concatenate/ && echo "$? returned"
Repository [seq_concatenate] does not exist in the targeted Tool Shed, can't do shed_diff
0 returned

Previously this error condition would mean a recursive shed_diff
would fail on repository not yet uploaded to the Tool Shed. It
now prints an error message but continues.

Resolves GitHub issue galaxyproject#201

TODO: Ensure that shed_diff on a single repository gives an error
return code, e.g.

$ planemo shed_diff ~/repositories/pico_galaxy/tools/seq_concatenate/ && echo "$? returned"
Repository [seq_concatenate] does not exist in the targeted Tool Shed, can't do shed_diff
0 returned
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like if you just return a non-zero value here the exit code would be handled correctly by the layers above this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the TODO, we need a clean way to signal to the recursive shed_diff that this error should be ignored (i.e. a warning to the terminal only), whereas in non-recursive mode it really is an error which should quit with a non-zero return code.

@jmchilton jmchilton merged commit 359c9ed into galaxyproject:master May 15, 2015
@martenson
Copy link
Member

thank you @peterjc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants