moriturus / ktra

Your Little Cargo Registry

Home Page:https://book.ktra.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

non-`master` branches in index unsupported by `cargo`

yodaldevoid opened this issue · comments

cargo at the moment does not support indexes with a main branch as anything other than master. See rust-lang/cargo#4024 for the PR that forced this and rust-lang/cargo#7329 for an issue tracking support for other branches.

ktra's default branch is currently main and it makes it seem like main will work as a main branch for an index in it's documentation. Until cargo adds support, I think ktra should change it's default branch and all references in the documentation to master to avoid difficulty when a user is trying to set up a new registry.

This has been fixed in cargo, these days it handles the main branch just fine.
This issue can be closed...

Hello,

In any case, the branch name used in the registry is now a configuration option. So if there is still the cargo issue (I didn't test sorry), we'll make a change to moriturus/ktra-book to mark it in the documentation

I tested with main and it simply works, cargo has no complaints :)