Root composer.json requires package dev-develop, found package but it does not match the constraint

I forked a GitHub repo foo/bar that I want to install using composer.

I added

{
    "require": {
        foo/bar": "dev-develop"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/myuser/bar"
        }
    ]
}

My bar fork has a branch develop.
When I run composer install, I get:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires foo/bar dev-develop, found foo/bar[dev-main, v0.1.0] but it does not match the constraint.