fix issues with legacy packages (#2841)

* fix issues with legacy packages

* include non-prerelease versions within compat range

* lock sdk to corresponding os prerelease

* bump sdk version

* fixes from PR review
This commit is contained in:
Aiden McClelland
2025-03-03 10:30:36 -07:00
committed by GitHub
parent 737beb11f6
commit 63bc71da13
15 changed files with 868 additions and 464 deletions

View File

@@ -514,11 +514,17 @@ pub async fn cli_install(
#[command(rename_all = "kebab-case")]
pub struct UninstallParams {
id: PackageId,
#[arg(long, help = "Do not delete the service data")]
#[serde(default)]
soft: bool,
#[arg(long, help = "Ignore errors in service uninit script")]
#[serde(default)]
force: bool,
}
pub async fn uninstall(
ctx: RpcContext,
UninstallParams { id }: UninstallParams,
UninstallParams { id, soft, force }: UninstallParams,
) -> Result<PackageId, Error> {
ctx.db
.mutate(|db| {
@@ -540,7 +546,7 @@ pub async fn uninstall(
let return_id = id.clone();
tokio::spawn(async move {
if let Err(e) = ctx.services.uninstall(&ctx, &id).await {
if let Err(e) = ctx.services.uninstall(&ctx, &id, soft, force).await {
tracing::error!("Error uninstalling service {id}: {e}");
tracing::debug!("{e:?}");
}