File tree Expand file tree Collapse file tree 5 files changed +11
-8
lines changed
cli/src/main/scala/scala/cli/commands/github
docs-tests/src/test/scala/sclicheck Expand file tree Collapse file tree 5 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import $file.project.settings, settings.{
18
18
projectFileName ,
19
19
jvmPropertiesFileName
20
20
}
21
- import $file .project .deps , deps .customRepositories
21
+ import $file .project .deps , deps .customRepositories , deps . alpineVersion
22
22
import $file .project .website
23
23
24
24
import java .io .File
@@ -184,6 +184,7 @@ trait DocsTests extends CrossSbtModule with ScalaCliScalafixModule with HasTests
184
184
| def coursierCliModule = " ${Deps .coursierCli.dep.module.name.value}"
185
185
| def coursierCliVersion = " ${Deps .Versions .coursierCli}"
186
186
| def defaultScalaVersion = " ${Scala .defaultUser}"
187
+ | def alpineVersion = " $alpineVersion"
187
188
|}
188
189
| """ .stripMargin
189
190
if (! os.isFile(dest) || os.read(dest) != code)
@@ -544,6 +545,8 @@ trait Core extends ScalaCliCrossSbtModule
544
545
| def mavenAppVersion = " ${Deps .Versions .mavenAppVersion}"
545
546
|
546
547
| def scalafixVersion = " ${Deps .Versions .scalafix}"
548
+ |
549
+ | def alpineVersion = " $alpineVersion"
547
550
|}
548
551
| """ .stripMargin
549
552
if (! os.isFile(dest) || os.read(dest) != code)
Original file line number Diff line number Diff line change @@ -40,13 +40,14 @@ object LibSodiumJni {
40
40
41
41
private def libsodiumVersion = Constants .libsodiumVersion
42
42
private def libsodiumjniVersion = Constants .libsodiumjniVersion
43
+ private def alpineVersion = Constants .alpineVersion
43
44
44
45
private def archiveUrlAndPath () =
45
46
if (Properties .isLinux && launcherKindOpt.contains(" static" ))
46
47
// Should actually be unused, as we statically link libsodium from the static launcher
47
48
// Keeping it just-in-case. This could be useful from a musl-based JVM.
48
49
(
49
- s " https://dl-cdn.alpinelinux.org/alpine/v3.15 /main/x86_64/libsodium- $libsodiumVersion-r0.apk " ,
50
+ s " https://dl-cdn.alpinelinux.org/alpine/v $alpineVersion /main/x86_64/libsodium- $libsodiumVersion-r0.apk " ,
50
51
os.rel / " usr" / " lib" / " libsodium.so.23.3.0" // FIXME Could this change?
51
52
)
52
53
else {
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ class GifTests extends munit.FunSuite {
171
171
ttyOpts,
172
172
" -v" ,
173
173
s " $out:/out " ,
174
- " alpine:3.16.2 " ,
174
+ s " alpine: ${ Constants .alpineVersion} " ,
175
175
" sh" ,
176
176
" -c" ,
177
177
" rm -rf /out/* || true; rm -rf /out/.* || true"
Original file line number Diff line number Diff line change @@ -285,17 +285,16 @@ def buildCsM1Version = Deps.Versions.coursierM1Cli
285
285
// Native library used to encrypt GitHub secrets
286
286
def libsodiumVersion = " 1.0.18"
287
287
// Using the libsodium static library from this Alpine version (in the static launcher)
288
- def alpineVersion = " 3.15 "
288
+ def alpineVersion = " 3.16 "
289
289
def ubuntuVersion = " 24.04"
290
290
291
291
object Docker {
292
292
def customMuslBuilderImageName = " scala-cli-base-musl"
293
293
def muslBuilder =
294
294
s " $customMuslBuilderImageName:latest "
295
295
296
- def testImage = s " ubuntu: $ubuntuVersion"
297
- def alpineTestImage =
298
- " alpine@sha256:4edbd2beb5f78b1014028f4fbb99f3237d9561100b6881aabbf5acce2c4f9454"
296
+ def testImage = s " ubuntu: $ubuntuVersion"
297
+ def alpineTestImage = s " alpine: $alpineVersion"
299
298
def authProxyTestImage =
300
299
" bahamat/authenticated-proxy@sha256:568c759ac687f93d606866fbb397f39fe1350187b95e648376b971e9d7596e75"
301
300
}
Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ trait CliLaunchers extends SbtModule { self =>
242
242
cs,
243
243
" get" ,
244
244
" --archive" ,
245
- " https://download.libsodium.org/libsodium/releases/libsodium-1.0.18 -stable-msvc.zip"
245
+ s " https://download.libsodium.org/libsodium/releases/libsodium- $libsodiumVersion -stable-msvc.zip "
246
246
).call()
247
247
val dir = os.Path (dirRes.out.trim(), os.pwd)
248
248
os.copy.over(
You can’t perform that action at this time.
0 commit comments