From 6f35a469b76289b3812324c0295682da95cdf058 Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Sat, 21 Oct 2023 00:51:05 +0000 Subject: [PATCH] Fix: Use array in single-item `versions` in `versions.json` --- generate/definitions/versions.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/generate/definitions/versions.json b/generate/definitions/versions.json index 4676b60c..4290c06d 100644 --- a/generate/definitions/versions.json +++ b/generate/definitions/versions.json @@ -1,6 +1,7 @@ { "code-server": { "versions": [ + "4.18.0", "4.17.1", "4.16.1", "4.15.0", @@ -18,7 +19,9 @@ "versionsNewScript": "Invoke-WebRequest https://api.github.com/repos/coder/code-server/git/refs/tags | ConvertFrom-Json | % { $_.ref -replace 'refs/tags/v', ''} | ? { $_ -match '^\\d+\\.\\d+\\.\\d+$' } | Sort-Object { [version]$_ } -Descending | ? { [version]$_ -ge [version]'4.6' }" }, "go": { - "versions": "1.20.10", + "versions": [ + "1.20.10" + ], "versionsChangeScope": "minor", "versionsNewScript": "Invoke-WebRequest https://api.github.com/repos/golang/go/git/refs/tags | ConvertFrom-Json | % { $_.ref -replace 'refs/tags/go', '' } | ? { $_ -match '^\\d+\\.\\d+\\.\\d+$' } | Sort-Object { [version]$_ } -Descending | ? { [version]$_ -gt [version]'1.20' -and [version]$_ -lt [version]'1.21' } # Alternatively, use: https://go.dev/dl/?mode=json&include=all" }