Skip to content

Commit 2d7b97c

Browse files
committed
Tweak sparse registry version regex and command not found
These issues are reported again rust-toolchain from which the code is inspired. dtolnay/rust-toolchain#71 dtolnay/rust-toolchain#69 (review)
1 parent c7c759a commit 2d7b97c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.4.2] - 2023-02-15
11+
12+
### Fixed
13+
14+
* Tweak sparse registry version regex to better work with 1.68 nightly versions.
15+
* Fix command not found issue
16+
1017
## [1.4.1] - 2023-02-13
1118

1219
### Fixed

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@ runs:
131131
- name: "Enable cargo sparse registry on stable"
132132
run: |
133133
# except on 1.66 and 1.67, on which it is unstable
134+
# Not all 1.68.0-nightly versions support it either
135+
# https://github.com/dtolnay/rust-toolchain/pull/69#discussion_r1107268108
134136
if [[ ! -v CARGO_REGISTRIES_CRATES_IO_PROTOCOL ]]; then
135-
if echo "${{steps.versions.outputs.rustc-version}}" | not grep -q '^rustc 1\.6[67]\.'; then
137+
if echo "${{steps.versions.outputs.rustc-version}}" | grep --invert --quiet '^rustc \(1\.6[67]\.\|1\.68\.0-nightly\)'; then
136138
echo "CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse" >> $GITHUB_ENV
137139
fi
138140
fi

0 commit comments

Comments
 (0)