Skip to content

Can't reach versions published to Sonatype Central #3742

Open
@Gedochao

Description

@Gedochao

Version(s)
1.8.1
1.8.1-17-gd48c691a8-SNAPSHOT

Describe the bug
It seems usage of --cli-version nightly no longer works as intended, after we migrated publishing to Sonatype Central Portal.

To Reproduce
--cli-version nightly points to an old version.

scala-cli --cli-version nightly -e 'println("Hello")' --native 
Fetching Scala CLI 1.8.1-1-gc0e412a9a-SNAPSHOT
Downloading compiler plugin org.scala-native:::nscplugin:0.5.7
Downloading 2 dependencies
Compiling project (Scala 3.7.1, Scala Native 0.5.7)
Compiled project (Scala 3.7.1, Scala Native 0.5.7)
...

1.8.1-17-gd48c691a8-SNAPSHOT got released sufficiently earlier (also notice that it's the 17th nightly after 1.8.1): https://github.com/VirtusLab/scala-cli/actions/runs/15588192852/job/43929147790#step:6:470

Pointing to the new nightly version explicitly also fails:

scala-cli --cli-version 1.8.1-17-gd48c691a8-SNAPSHOT -e 'println("Hello")' --native
Fetching Scala CLI 1.8.1-17-gd48c691a8-SNAPSHOT
Error downloading org.virtuslab.scala-cli:cli_3:1.8.1-17-gd48c691a8-SNAPSHOT
  not found: https://repo1.maven.org/maven2/org/virtuslab/scala-cli/cli_3/1.8.1-17-gd48c691a8-SNAPSHOT/cli_3-1.8.1-17-gd48c691a8-SNAPSHOT.pom
  not found: https://oss.sonatype.org/content/repositories/snapshots/org/virtuslab/scala-cli/cli_3/1.8.1-17-gd48c691a8-SNAPSHOT/cli_3-1.8.1-17-gd48c691a8-SNAPSHOT.pom
  No fallback URL found
  not found: /Users/pchabelski/.ivy2/local/org.virtuslab.scala-cli/cli_3/1.8.1-17-gd48c691a8-SNAPSHOT/ivys/ivy.xml

Expected behaviour
I'd expect the new nightlies to be available under --cli-version and picked up automatically.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleasingIssues tied to the Scala CLI release pipeline

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions