Skip to content

error: failed to invite owners ... It looks like you don't have permission ... #1446

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

Closed
vi opened this issue Jun 28, 2018 · 6 comments
Closed

Comments

@vi
Copy link

vi commented Jun 28, 2018

$ cargo  owner --add github:rust-bus:maintainers 
    Updating registry `https://github.com/rust-lang/crates.io-index`
error: failed to invite owners to crate ...: api errors: It looks like you don't have permission to query a necessary property from Github to complete this request. You may need to re-authenticate on crates.io to grant permission to read github org memberships. Just go to https://crates.io/login

I did https://crates.io/login, Githus asked for permissions, I accepted, (crates.io got into a sort of redirect loop after that, but it shows my profile page now), but cargo owner --add still shows the error.

crates.io entry of Github's https://github.com/settings/connections/applications shows one permission: Read org and team membership.

@carols10cents
Copy link
Member

This is confusing, and I'm sorry. Have you granted crates.io permissions to the rust-bus organization? To check this, go to https://github.com/settings/applications, click on crates.io, and scroll down to where the organizations are listed. Is the rust-bus org listed there with a green check?

@vi
Copy link
Author

vi commented Jun 28, 2018

That's how it looks:

screenshot

I don't know where to add organisations.

Anyway

Just go to https://crates.io/login

seems to be not enough.

@carols10cents
Copy link
Member

Hmmmm, that's really strange, this is what that page looks like to me:

screen shot 2018-06-28 at 10 59 06 pm

Are you a member of the rust-bus organization?

We have #997 for improving this error message to be more helpful.

@vi
Copy link
Author

vi commented Jun 29, 2018

Are you a member of the rust-bus organization?

No. I expect membership it to be for maintainers of Rust Bus, not for usual users. It it not the case?

@carols10cents
Copy link
Member

Ah, well, currently you need to be a member of the team to be able to add the team as an owner of a crate, and we don't have plans to change that requirement.

@kornelski
Copy link
Contributor

Sorry for the confusion. That's a dupe of #1366. I've updated our docs to point to another command that doesn't run into this limitation.

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

No branches or pull requests

3 participants