Skip to content

Commit

Permalink
Use the new, shorter link for downloading the install script (#2450)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gedochao authored Oct 6, 2023
1 parent d8a4d59 commit e10df04
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 21 deletions.
2 changes: 1 addition & 1 deletion gifs/scenarios/complete-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ else

doSleep 2

pe "curl -sSLf https://virtuslab.github.io/scala-cli-packages/scala-setup.sh | sh"
pe "curl -sSLf https://scala-cli.virtuslab.org/get | sh"
pe 'source ~/.profile'
pe "echo 'println(\"Hello from scala-cli\")' | scala-cli -"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ object Update extends ScalaCommand[UpdateOptions] {
}

val installationScript =
ProcUtil.downloadFile("https://virtuslab.github.io/scala-cli-packages/scala-setup.sh")
ProcUtil.downloadFile("https://scala-cli.virtuslab.org/get")

// format: off
val res = os.proc(
Expand Down Expand Up @@ -128,7 +128,7 @@ object Update extends ScalaCommand[UpdateOptions] {
else if (isOutdated)
println(
s"""Your $fullRunnerName $currentVersion is outdated, please update $fullRunnerName to $newestScalaCliVersion0
|Run 'curl -sSLf https://virtuslab.github.io/scala-cli-packages/scala-setup.sh | sh' to update $fullRunnerName.""".stripMargin
|Run 'curl -sSLf https://scala-cli.virtuslab.org/get | sh' to update $fullRunnerName.""".stripMargin
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,26 +522,30 @@ trait RunScriptTestDefinitions { _: RunTestDefinitions =>
test("script wrappers satisfy strict compiler flags") {
val inputs = TestInputs(
os.rel / "strictClassWrapper.sc" ->
"""//> using scala 3.3.1
|//> using options -Werror -Wnonunit-statement -Wunused:all -Wvalue-discard
|//> using options -Yno-experimental -Ysafe-init -deprecation -feature -language:strictEquality
|//> using options -new-syntax -old-syntax -unchecked -no-indent
|
|println(strictObjectWrapper.Foo(42).x)
|""".stripMargin,

"""//> using scala 3.3.1
|//> using options -Werror -Wnonunit-statement -Wunused:all -Wvalue-discard
|//> using options -Yno-experimental -Ysafe-init -deprecation -feature -language:strictEquality
|//> using options -new-syntax -old-syntax -unchecked -no-indent
|
|println(strictObjectWrapper.Foo(42).x)
|""".stripMargin,
os.rel / "strictObjectWrapper.sc" ->
"""//> using objectWrapper
|//> using scala 3.3.1
|//> using options -Werror -Wnonunit-statement -Wunused:all -Wvalue-discard
|//> using options -Yno-experimental -Ysafe-init -deprecation -feature -language:strictEquality
|//> using options -new-syntax -old-syntax -unchecked -no-indent
|
|case class Foo(x: Int)
|""".stripMargin
"""//> using objectWrapper
|//> using scala 3.3.1
|//> using options -Werror -Wnonunit-statement -Wunused:all -Wvalue-discard
|//> using options -Yno-experimental -Ysafe-init -deprecation -feature -language:strictEquality
|//> using options -new-syntax -old-syntax -unchecked -no-indent
|
|case class Foo(x: Int)
|""".stripMargin
)
inputs.fromRoot { root =>
val p = os.proc(TestUtil.cli, "--power", "strictClassWrapper.sc", "strictObjectWrapper.sc").call(cwd = root)
val p = os.proc(
TestUtil.cli,
"--power",
"strictClassWrapper.sc",
"strictObjectWrapper.sc"
).call(cwd = root)
expect(p.out.trim() == "42")
}
}
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/BasicInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function BasicInstall(props){
<TabItem value="linux" >
<p>Run the following one-line command in your terminal:</p>
<code>
curl -sSLf https://virtuslab.github.io/scala-cli-packages/scala-setup.sh | sh
curl -sSLf https://scala-cli.virtuslab.org/get | sh
</code>
</TabItem>

Expand Down

0 comments on commit e10df04

Please sign in to comment.