Skip to content

Commit 80e1df8

Browse files
Retrieve more releases entries (#462)
* feat: Retrieve more releases entries * docs: Update changelog * fix: Update per_page attribute to 100 (maximum)
1 parent bf94b56 commit 80e1df8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
### Fixed
13+
- When queriying GitHub for the list of releases, retrieve more items (#462)
1314

1415
### Changed
15-
1616
- espup now prints why an install step failed (#461)
1717

1818
### Removed

src/toolchain/rust.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const DEFAULT_XTENSA_RUST_REPOSITORY: &str =
3636
/// Xtensa Rust Toolchain API URL
3737
const XTENSA_RUST_LATEST_API_URL: &str =
3838
"https://api.github.com/repos/esp-rs/rust-build/releases/latest";
39-
const XTENSA_RUST_API_URL: &str = "https://api.github.com/repos/esp-rs/rust-build/releases";
39+
const XTENSA_RUST_API_URL: &str =
40+
"https://api.github.com/repos/esp-rs/rust-build/releases?page=1&per_page=100";
4041

4142
/// Xtensa Rust Toolchain version regex.
4243
pub const RE_EXTENDED_SEMANTIC_VERSION: &str = r"^(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)\.(?P<subpatch>0|[1-9]\d*)?$";

0 commit comments

Comments
 (0)