rust-lang / rust-lang/rustup

Github API `/repos/<repo>/releases/latest` not working

Open
#2,824 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

I am trying to get the number of the latest rustup release with the following:

curl --silent "https://api.github.com/repos/rust-lang/rustup/releases/latest" | # Get latest release from GitHub api
    grep '"tag_name":' |                                                 # Get tag line
    sed -E 's/.*"([^"]+)".*/\1/'                                         # Pluck JSON value

This is currently not working with the rustup repository, although it does work with rust-lang/rust:

$ curl --silent "https://api.github.com/repos/rust-lang/rust/releases/latest" | 
    grep '"tag_name":' |                                           
    sed -E 's/.*"([^"]+)".*/\1/'                                   
1.53.0

This API would be great to have enabled for this repository!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the curl, grep, and sed commands against rust-lang/rustup and rust-lang/rust, then inspect how rustup releases are published on GitHub. Determine what prevents the /repos/<repo>/releases/latest endpoint from returning a release for rustup; done means the endpoint exposes the latest rustup release tag as shown by the existing command.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, rust
Domain
api, release
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.