galaxyproject / galaxyproject/planemo

Planemo shed_lint does not raise error if YAML owner does not match ToolShed owner

Open
#422 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
110
Forks
102
Avg merge
4d 21h
Merged PRs (30d)
13

Description

Hi :),

I was trying to create my repository following [this tutorial](https://planemo.readthedocs.org/en/latest/publishing.html), and faced errors on the creation and the update of the repository (The first time I used `shed_create` it kind of worked):

I created a [Gist](https://gist.github.com/remimarenco/842193c5aa8be458819b) to log the issues I encountered.

I wrote in the shed.yml a wrong owner name / a different owner name than the one I use in my toolshed account.
It is maybe the cause of the errors, as when I changed it, the creation worked (and my repository was not anymore in a weird state)
- Operating system: Mac OSX 10.11.3 / Planemo version: 0.23.0
- Steps to reproduce the bug:
- Create a tool on your computer, and populate it with a `shed_init` containing a owner name different than the one in your toolshed account
- Use `shed_create` to create your repository. It should create it, but with weird informations (I had a versioning like: "-1:00000000000")
- Try to `shed_create`, it should raise an error saying the repo **already** exists
- Try to `shed_update`, it should raise an error saying the repo **does not** exist

So I guess a PR to resolve this would contain:
- [ ] The linting detecting a difference between the public name in the repo of the user, and the one into the .shed.yml
- [ ] `shed_create` checking the same than linting
- [ ] Others planemo command that change or create repo and use the owner should also check this

Hope this helps!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.