diff --git a/core/__snapshots__/core_test.snap b/core/__snapshots__/core_test.snap index 79f82f9..5a8bcbc 100755 --- a/core/__snapshots__/core_test.snap +++ b/core/__snapshots__/core_test.snap @@ -25,7 +25,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.python]\n version = \"3.13.2\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -213,7 +213,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.go]\n version = \"1.18\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -353,7 +353,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.go]\n version = \"1.23.6\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -498,7 +498,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.bun]\n version = \"1.2.2\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -663,7 +663,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.node]\n version = \"20.18.2\"\n [tools.pnpm]\n version = \"10.2.0\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -844,7 +844,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.node]\n version = \"22.13.1\"\n [tools.pnpm]\n version = \"10.2.0\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -961,7 +961,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.pipx]\n version = \"1.7.1\"\n [tools.python]\n version = \"3.13.1\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -1143,7 +1143,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.python]\n version = \"3.13.1\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -1306,7 +1306,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.pipx]\n version = \"1.7.1\"\n [tools.python]\n version = \"3.13.1\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -1480,7 +1480,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.python]\n version = \"3.11.11\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -1648,7 +1648,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.pipx]\n version = \"1.7.1\"\n [tools.python]\n version = \"3.11.11\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -1916,7 +1916,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.caddy]\n version = \"2.9.1\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -2024,7 +2024,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.caddy]\n version = \"2.9.1\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -2142,7 +2142,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.node]\n version = \"22.13.1\"\n [tools.npm]\n version = \"11.1.0\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -2308,7 +2308,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.node]\n version = \"23.5.0\"\n [tools.npm]\n version = \"9.9.4\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -2458,7 +2458,7 @@ "steps": [ { "assets": { - "mise.toml": "[tools]\n [tools.node]\n version = \"22.13.1\"\n [tools.npm]\n version = \"9.9.4\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { @@ -2652,7 +2652,7 @@ }, { "assets": { - "mise.toml": "[tools]\n [tools.node]\n version = \"22.13.1\"\n [tools.npm]\n version = \"9.9.4\"\n" + "mise.toml": "[mise.toml]" }, "commands": [ { diff --git a/core/core_test.go b/core/core_test.go index bc6a8c4..002f6c1 100644 --- a/core/core_test.go +++ b/core/core_test.go @@ -38,6 +38,15 @@ func TestGenerateBuildPlanForExamples(t *testing.T) { plan := buildResult.Plan + // Remove the mise.toml asset since the versions may change between runs + for _, step := range plan.Steps { + for name := range step.Assets { + if name == "mise.toml" { + step.Assets[name] = "[mise.toml]" + } + } + } + snaps.MatchJSON(t, plan) }) }