-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import role to Galaxy after changing default branch from 'master' to 'main' #2535
Comments
I fixed this by deleting the role and re-importing it from GitHub. I have lost all downloads metrics :( |
I've also found this issue, changing branches from I'm keen not to have to re-import the role, it seems a bit of a faff.
|
Try setting |
I can confirm this works for me @chouseknecht - thank you. |
I will forever mourn my lost download metrics, but perfect, thanks @chouseknecht . Is there documentation for that setting I missed, or was that added? |
Hi @artis3n It is mentioned in https://galaxy.ansible.com/docs/contributing/creating_role.html#role-metadata |
Woops, definitely read straight over that. Thanks for linking. |
Hi folks But Galaxy still uses the non-existent
Are we doing anything wrong here? |
I temporarily recreated the |
@dallinb Thank you for your support. Unfortunately Galaxy still tries to import the
Is there anything else we can try? |
I can confirm the behavior @Normo has reported. I have the same setup as them for the painless.software role, explicitly pointing Galaxy to the When triggering an import from the Galaxy Web UI imports continue to pull from |
@chouseknecht Could this behavior ^^^ be, specifically with the painless author, maybe related to the fact that the GitHub namespace is not the same as the one on Ansible Galaxy? Remember, you configured that manually on my request (#1414). |
This also happens to |
Same with |
From td2's comment you can import with a different branch via the command line. Get your token from your galaxy preferences.
|
@thermistor this is the best solution so far. You just put this argument and everything will be corrected on Ansible Galaxy.. no need to recreate master branch! @artis3n this way you would not have lost anything. |
2 years later, I agree there are better options available :) |
More than 1.5 years later I'm still stuck with the same problem. Probably related to the custom configuration of my account. Any help possible, @chouseknecht? |
This used to work with just the $ ansible-galaxy install painless.software
Starting galaxy role install process
- downloading role 'software', owned by painless
- downloading role from https://github.com/painless/ansible-role-software/archive/master.tar.gz
[ERROR]: failed to download the file: HTTP Error 404: Not Found
[WARNING]: - painless.software was NOT installed successfully.
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list. Obviously, the repository I reported this with other details in the new Ansible Community forum. |
Bug Report
SUMMARY
I am trying to release a new version of https://github.com/artis3n/ansible-role-tailscale. I used to use
master
, but moved over tomain
as the default branch.Galaxy fails to import the role - it is looking for a
master
branch. I am not sure whether this is configurable when I first sync the repo to Galaxy, but it does not look like I can force a re-sync of the role without deleting the role from Galaxy, which I do not want to do.STEPS TO REPRODUCE
master
as the default branch.main
.EXPECTED RESULTS
Galaxy always uses the default branch on the repo, or provides a method to force a re-sync to update the default branch stored by Galaxy for the role's repo.
ACTUAL RESULTS
Galaxy looked for
master
to exist on the repo and the role failed to import and update on Ansible Galaxy.The text was updated successfully, but these errors were encountered: