Skip to content

Commit 408c4ab

Browse files
authored
Merge pull request #94 from RAprogramm/codex/fix-publish-error-for-masterror-derive
chore: publish template crate before derive
2 parents bccb7df + d718de1 commit 408c4ab

File tree

5 files changed

+43
-9
lines changed

5 files changed

+43
-9
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,33 @@ jobs:
8282
with:
8383
toolchain: ${{ steps.msrv.outputs.msrv }}
8484

85+
- name: Maybe publish masterror-template
86+
env:
87+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
88+
shell: bash
89+
run: |
90+
set -euo pipefail
91+
if cargo metadata --no-deps --format-version=1 \
92+
| jq -e '.packages[] | select(.name=="masterror-template" and .source==null)' >/dev/null; then
93+
echo "Publishing masterror-template..."
94+
n=0
95+
until [ $n -ge 5 ]
96+
do
97+
if cargo +${{ steps.msrv.outputs.msrv }} publish -p masterror-template --locked --token "$CARGO_REGISTRY_TOKEN"; then
98+
echo "masterror-template published."
99+
break
100+
fi
101+
n=$((n+1))
102+
echo "Retry $n/5 for masterror-template..."
103+
sleep $((5*n))
104+
done
105+
else
106+
echo "No local masterror-template found; skipping."
107+
fi
108+
109+
- name: Wait for crates.io index sync (after template)
110+
run: sleep 15
111+
85112
- name: Maybe publish masterror-derive
86113
env:
87114
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
55

6+
## [0.10.8] - 2025-10-25
7+
8+
### Fixed
9+
- Updated the release workflow to publish `masterror-template` before
10+
`masterror-derive`, ensuring crates.io recognises the shared dependency during
11+
release automation.
12+
613
## [0.10.7] - 2025-10-24
714

815
### Fixed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "masterror"
3-
version = "0.10.7"
3+
version = "0.10.8"
44
rust-version = "1.90"
55
edition = "2024"
66
license = "MIT OR Apache-2.0"

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ Stable categories, conservative HTTP mapping, no `unsafe`.
2929

3030
~~~toml
3131
[dependencies]
32-
masterror = { version = "0.10.7", default-features = false }
32+
masterror = { version = "0.10.8", default-features = false }
3333
# or with features:
34-
# masterror = { version = "0.10.7", features = [
34+
# masterror = { version = "0.10.8", features = [
3535
# "axum", "actix", "openapi", "serde_json",
3636
# "sqlx", "sqlx-migrate", "reqwest", "redis",
3737
# "validator", "config", "tokio", "multipart",
@@ -66,10 +66,10 @@ masterror = { version = "0.10.7", default-features = false }
6666
~~~toml
6767
[dependencies]
6868
# lean core
69-
masterror = { version = "0.10.7", default-features = false }
69+
masterror = { version = "0.10.8", default-features = false }
7070

7171
# with Axum/Actix + JSON + integrations
72-
# masterror = { version = "0.10.7", features = [
72+
# masterror = { version = "0.10.8", features = [
7373
# "axum", "actix", "openapi", "serde_json",
7474
# "sqlx", "sqlx-migrate", "reqwest", "redis",
7575
# "validator", "config", "tokio", "multipart",
@@ -623,13 +623,13 @@ assert_eq!(resp.status, 401);
623623
Minimal core:
624624

625625
~~~toml
626-
masterror = { version = "0.10.7", default-features = false }
626+
masterror = { version = "0.10.8", default-features = false }
627627
~~~
628628

629629
API (Axum + JSON + deps):
630630

631631
~~~toml
632-
masterror = { version = "0.10.7", features = [
632+
masterror = { version = "0.10.8", features = [
633633
"axum", "serde_json", "openapi",
634634
"sqlx", "reqwest", "redis", "validator", "config", "tokio"
635635
] }
@@ -638,7 +638,7 @@ masterror = { version = "0.10.7", features = [
638638
API (Actix + JSON + deps):
639639

640640
~~~toml
641-
masterror = { version = "0.10.7", features = [
641+
masterror = { version = "0.10.8", features = [
642642
"actix", "serde_json", "openapi",
643643
"sqlx", "reqwest", "redis", "validator", "config", "tokio"
644644
] }

0 commit comments

Comments
 (0)