Skip to content

Commit cf46e88

Browse files
committed
fix: exit with code '1' instead of '0' on install failures
When the miru-agent --install fails, it still exits with a success code instead of a failure code. This complicates error handling, making programmatic control difficult
1 parent 6d7a3ee commit cf46e88

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

agent/src/installer/install.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ pub async fn install(cli_args: &HashMap<String, String>) {
2626
}
2727
Err(e) => {
2828
error!("Installation failed: {:?}", e);
29-
display::print_err_msg(Some(e.to_string()))
29+
display::print_err_msg(Some(e.to_string()));
30+
std::process::exit(1);
3031
}
3132
}
3233
}

build/.goreleaser.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ nfpms:
2525
package_name: miru-agent
2626
file_name_template: "{{ .PackageName }}_{{ .Version }}_{{ .Arch }}"
2727
vendor: "Miru"
28-
homepage: "https://miruml.com"
29-
maintainer: "Benjamin Smidt <ben@miruml.com>"
28+
homepage: "https://mirurobotics.com"
29+
maintainer: "Benjamin Smidt <ben@mirurobotics.com>"
3030
description: |
3131
Miru Agent.
3232
Miru provides the infrastructure to version, manage, and deploy application configurations at scale. This debian package is the miru agent, which handles configuration deployment to your robots in production.
@@ -112,15 +112,15 @@ changelog:
112112
release:
113113
prerelease: auto
114114
github:
115-
owner: miruml
115+
owner: mirurobotics
116116
name: agent
117117
footer: >-
118118
## Miru Agent {{.Tag}}
119119
120-
**Full Changelog**: https://github.com/miruml/agent/compare/{{ .PreviousTag }}...{{ .Tag }}
120+
**Full Changelog**: https://github.com/mirurobotics/agent/compare/{{ .PreviousTag }}...{{ .Tag }}
121121
122122
123-
For documentation, visit: https://docs.miruml.com
123+
For documentation, visit: https://docs.mirurobotics.com
124124
125125
source:
126126
enabled: false

0 commit comments

Comments
 (0)