Skip to content
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

Registries report which commands they support. #5915

Closed
wants to merge 3 commits into from

Commits on Aug 20, 2018

  1. Registries report which commands they support.

    In the `config.json` of each registry's index, that registry can report
    which commands it supports, under which versions. For example, crates.io's
    config.json should look like:
    
    ```json
    {
        "api": "https://crates.io/",
        "dl": "https://crates.io/api/v1/crates",
        "commands": {
            "publish": ["v1"],
            "yank": ["v1"],
            "owner": ["v1"],
            "search": ["v1"],
            "login": ["v1"]
        }
    }
    ```
    
    Currently, these five commands only have one version, "v1," but this allows us
    to release new, breaking changes to these commands' interface with crates.io
    without disrupting the operation of any alternative registry.
    
    Before this is merged, crates.io's config.json will need to be updated, and we
    should make an effort to inform known maintainers of alternative registries
    that they need to update their indices as well.
    Without Boats committed Aug 20, 2018
    Configuration menu
    Copy the full SHA
    d66e540 View commit details
    Browse the repository at this point in the history
  2. Fix tests

    Without Boats committed Aug 20, 2018
    Configuration menu
    Copy the full SHA
    e696de6 View commit details
    Browse the repository at this point in the history
  3. Fix tests again

    Without Boats committed Aug 20, 2018
    Configuration menu
    Copy the full SHA
    8dfdc19 View commit details
    Browse the repository at this point in the history