这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix workspace crate not in index error #181

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

Merged

Conversation

awgroeneveld
Copy link
Contributor

@awgroeneveld awgroeneveld commented Feb 23, 2025

I added a handler for tame_index::Error::NoCrateVersions, which raised the following error upon running cargo workspaces publish to an Azure Devops Artefacts registry when one of the workspace crates has not yet been published::
error: crates index error: index entry contained no versions for the crate

The proposed change results in an unpublished return value in the is_published function instead of an error. Publishing afterward is successful.

Tested successfully using
cargo workspaces publish --registry <...> --yes --all patch --no-git-commit --token "$PAT"

@pksunkara pksunkara merged commit 45d48bf into pksunkara:master Feb 28, 2025
3 of 7 checks passed
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.

2 participants