v0.1.3-pre.013-fix.001
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
# file: Cargo.toml
|
||||
# version: 57
|
||||
# version: 58
|
||||
|
||||
[workspace]
|
||||
resolver = "3"
|
||||
members = ["crates/ksp-config-lib", "crates/ksp-core-lib", "crates/ksp-logging-lib"]
|
||||
|
||||
[workspace.package]
|
||||
version = "0.1.3-pre.13"
|
||||
version = "0.1.3-pre.13.fix.1"
|
||||
edition = "2024"
|
||||
license = "MIT"
|
||||
repository = "https://git.sasedev.com/Sasedev/khadhroony-solana-project"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-config-lib/src/persistence.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
static NEXT_TEMPORARY_FILE_ID: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(1);
|
||||
|
||||
@@ -98,7 +98,13 @@ fn cleanup_temporary_file(path: &std::path::Path) {
|
||||
if let std::result::Result::Err(error) = removal
|
||||
&& error.kind() != std::io::ErrorKind::NotFound
|
||||
{
|
||||
ksp_logging_lib::warn!(target: "ksp-config-lib", domain: "config.persistence", path = %path.to_string_lossy(), error = %error, "unable to cleanup temporary Config file");
|
||||
ksp_logging_lib::warn!(
|
||||
target: "ksp-config-lib",
|
||||
domain = "config.persistence",
|
||||
path = %path.to_string_lossy(),
|
||||
error = %error,
|
||||
"unable to cleanup temporary Config file"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
59
deltas/0.1.3/pre.013-fix.001.md
Normal file
59
deltas/0.1.3/pre.013-fix.001.md
Normal file
@@ -0,0 +1,59 @@
|
||||
<!-- file: deltas/0.1.3/pre.013-fix.001.md -->
|
||||
<!-- version: 1 -->
|
||||
|
||||
# Delta 0.1.3-pre.013-fix.001
|
||||
|
||||
## Base requise
|
||||
|
||||
Cette correction s'applique après `0.1.3-pre.013`.
|
||||
|
||||
La validation utilisateur de `pre.013` a détecté une erreur de compilation dans `crates/ksp-config-lib/src/persistence.rs` :
|
||||
|
||||
```text
|
||||
error: expected `,`, found `:`
|
||||
...
|
||||
ksp_logging_lib::warn!(target: "ksp-config-lib", domain: "config.persistence", ...)
|
||||
```
|
||||
|
||||
## Correction
|
||||
|
||||
L'appel de la façade `ksp-logging-lib` utilise désormais la syntaxe structurée supportée par les macros KSP/tracing :
|
||||
|
||||
```rust
|
||||
ksp_logging_lib::warn!(
|
||||
target: "ksp-config-lib",
|
||||
domain = "config.persistence",
|
||||
path = %path.to_string_lossy(),
|
||||
error = %error,
|
||||
"unable to cleanup temporary Config file"
|
||||
);
|
||||
```
|
||||
|
||||
Le champ `domain` est un champ structuré de l'événement et utilise donc `=`. La forme `domain:` introduite dans `pre.013` était invalide.
|
||||
|
||||
## Périmètre
|
||||
|
||||
Aucun comportement de management/persistence n'est modifié. Aucun changement de dépendance, schema, Config, `.env` ou `.env.example`.
|
||||
|
||||
La version technique devient :
|
||||
|
||||
```text
|
||||
workspace.package.version = "0.1.3-pre.13.fix.1"
|
||||
```
|
||||
|
||||
## Fichiers modifiés
|
||||
|
||||
```text
|
||||
Cargo.toml
|
||||
crates/ksp-config-lib/src/persistence.rs
|
||||
deltas/0.1.3/pre.013-fix.001.md
|
||||
```
|
||||
|
||||
## Validation utilisateur demandée
|
||||
|
||||
```bash
|
||||
cargo fmt --all
|
||||
cargo check --workspace
|
||||
cargo clippy --workspace --all-targets
|
||||
cargo test --workspace
|
||||
```
|
||||
Reference in New Issue
Block a user