chore: remove legacy nix profile resources

This commit is contained in:
2026-05-30 12:05:34 +09:00
parent 1100ded218
commit b981bbd87b
11 changed files with 171 additions and 474 deletions
+6 -6
View File
@@ -1181,9 +1181,9 @@ mod tests {
#[test]
fn parse_profile_spawn_mode() {
match parse_args_from(["--profile", "/profiles/coder.nix"]).unwrap() {
match parse_args_from(["--profile", "/profiles/coder.lua"]).unwrap() {
Mode::Spawn { profile } => {
assert_eq!(profile, Some("/profiles/coder.nix".to_string()));
assert_eq!(profile, Some("/profiles/coder.lua".to_string()));
}
_ => panic!("expected Spawn mode"),
}
@@ -1196,7 +1196,7 @@ mod tests {
(
vec![
"--profile".to_string(),
"p.nix".to_string(),
"p.lua".to_string(),
"--resume".to_string(),
],
"--profile can only be used for fresh spawn",
@@ -1204,7 +1204,7 @@ mod tests {
(
vec![
"--profile".to_string(),
"p.nix".to_string(),
"p.lua".to_string(),
"--session".to_string(),
segment_id,
],
@@ -1213,7 +1213,7 @@ mod tests {
(
vec![
"--profile".to_string(),
"p.nix".to_string(),
"p.lua".to_string(),
"--socket".to_string(),
"/tmp/insomnia/sock".to_string(),
],
@@ -1222,7 +1222,7 @@ mod tests {
(
vec![
"--profile".to_string(),
"p.nix".to_string(),
"p.lua".to_string(),
"agent".to_string(),
],
"--profile can only be used for fresh spawn",
+2 -2
View File
@@ -655,7 +655,7 @@ mod tests {
r#"
default = "coder"
[profile]
coder = "profiles/coder.nix"
coder = "profiles/coder.lua"
"#,
)
.unwrap();
@@ -679,7 +679,7 @@ coder = "profiles/coder.nix"
r#"
default = "coder"
[profile.coder]
path = "profiles/coder.nix"
path = "profiles/coder.lua"
description = "Project coder"
"#,
)