Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d968d0

Browse files
committed
Add support for Debian 13
1 parent a7a376b commit 0d968d0

7 files changed

Lines changed: 145 additions & 55 deletions

File tree

.github/workflows/test.main.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ val alpineDistributions = listOf(
134134
alpine
135135
)
136136

137+
val debian13 = Distribution(
138+
wslId = "Debian-13",
139+
matchPattern = "*Debian*13*",
140+
defaultAbsentTool = "dos2unix"
141+
)
142+
137143
val debian12 = Distribution(
138144
wslId = "Debian-12",
139145
matchPattern = "*Debian*12*",
@@ -200,6 +206,7 @@ val ubuntu1604 = Distribution(
200206

201207
val distributions = listOf(
202208
*alpineDistributions.toTypedArray(),
209+
debian13,
203210
debian12,
204211
debian11,
205212
debian,

.github/workflows/test.yaml

Lines changed: 119 additions & 52 deletions
Large diffs are not rendered by default.

action-types.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ inputs:
2525
- Alpine-3.18
2626
- Alpine-3.17
2727
- Alpine
28+
- Debian-13
2829
- Debian-12
2930
- Debian-11
3031
- Debian

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ inputs:
3636
- 'Alpine-3.18'
3737
- 'Alpine-3.17'
3838
- 'Alpine' (deprecated, 'Alpine-3.17' is a drop-in replacement, except for the wsl-shell-distribution-wrapper name)
39+
- 'Debian-13'
3940
- 'Debian-12'
4041
- 'Debian-11'
4142
- 'Debian' (deprecated, 'Debian-11' is a drop-in replacement, except for the wsl-shell-distribution-wrapper name)
@@ -66,6 +67,11 @@ inputs:
6667
This can be used to adjust various settings as documented at
6768
https://docs.microsoft.com/en-us/windows/wsl/wsl-config#configuration-settings-for-wslconf.
6869
This can also be used if the distribution is installed already.
70+
71+
WARNING: Setting this option will overwrite any existing content of the file.
72+
Some distributions like Debian-13 and Ubuntu-24.04 ship with a default wsl.conf file.
73+
Make sure to check whether a file exists by default and whether you want to include
74+
its contents in your configured value.
6975
required: false
7076

7177
set-as-default:

readme/README_template.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ The values currently supported by this action are:
153153
* `Alpine-3.18`
154154
* `Alpine-3.17`
155155
* `Alpine` _(deprecated, 'Alpine-3.17' is a drop-in replacement, except for the wsl-shell-distribution-wrapper name)_
156+
* `Debian-13`
156157
* `Debian-12`
157158
* `Debian-11`
158159
* `Debian` **(default)** _(deprecated, 'Debian-11' is a drop-in replacement, except for the wsl-shell-distribution-wrapper name)_
@@ -196,8 +197,8 @@ https://docs.microsoft.com/en-us/windows/wsl/wsl-config#configuration-settings-f
196197
This can also be used if the distribution is installed already.
197198

198199
**WARNING:** Setting this option will overwrite any existing content of the file.
199-
Some distributions like Ubuntu-24.04 might already ship with a wsl.conf file.
200-
Make sure to check whether a file exists by default and whether you want to included
200+
Some distributions like Debian-13 and Ubuntu-24.04 ship with a default wsl.conf file.
201+
Make sure to check whether a file exists by default and whether you want to include
201202
its contents in your configured value.
202203

203204
**Default value:** none

src/jsMain/kotlin/net/kautler/github/action/setup_wsl/Distribution.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ val distributions = listOf(
3737
Debian,
3838
Debian11,
3939
Debian12,
40+
Debian13,
4041
Kali,
4142
OpenSuseLeap15_2,
4243
Ubuntu1604,
@@ -307,6 +308,13 @@ object Debian12 : DebianDistribution(
307308
downloadUrl = URL("https://salsa.debian.org/debian/WSL/-/jobs/7130915/artifacts/raw/Debian_WSL_AMD64_v1.20.0.0.wsl")
308309
)
309310

311+
object Debian13 : DebianDistribution(
312+
wslId = "Debian-13",
313+
distributionName = "Debian",
314+
version = SemVer("1.24.0"),
315+
downloadUrl = URL("https://salsa.debian.org/debian/WSL/-/jobs/9229125/artifacts/raw/Debian_WSL_AMD64_v1.24.0.0.wsl")
316+
)
317+
310318
object Kali : AptGetBasedDistribution(
311319
wslId = "MyDistribution",
312320
userId = "kali-linux",

src/jsMain/kotlin/net/kautler/github/action/setup_wsl/SetupWsl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ val distribution by lazy {
125125
Debian -> warning(
126126
"""
127127
'Debian' distribution is deprecated.
128-
Please migrate to a versioned distribution such as 'Debian-12'.
128+
Please migrate to a versioned distribution such as 'Debian-13'.
129129
'Debian-11' is a drop-in replacement, except for the wsl-shell-distribution-wrapper name.
130130
""".trimIndent()
131131
)

0 commit comments

Comments
 (0)