Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.3.0 core module depends on 0.3.0-SNAPSHOT json module #456

Open
pawelprazak opened this issue Apr 16, 2024 · 1 comment
Open

0.3.0 core module depends on 0.3.0-SNAPSHOT json module #456

pawelprazak opened this issue Apr 16, 2024 · 1 comment
Assignees
Labels
awaiting-release Fix was merged but not released kind/bug Some behavior is incorrect or out of spec size/S Estimated effort to complete (1-2 days).
Milestone

Comments

@pawelprazak
Copy link
Contributor

pawelprazak commented Apr 16, 2024

The CI failed with the following during the release:

scala-cli --power compile besom-cats --suppress-experimental-feature-warning
Downloading https://repo1.maven.org/maven2/org/virtuslab/besom-json_3/0.3.0-SNAPSHOT/besom-json_3-0.3.0-SNAPSHOT.pom
Downloaded https://repo1.maven.org/maven2/org/virtuslab/besom-json_3/0.3.0-SNAPSHOT/besom-json_3-0.3.0-SNAPSHOT.pom
Downloading https://repo1.maven.org/maven2/org/virtuslab/besom-json_3/0.3.0-SNAPSHOT/besom-json_3-0.3.0-SNAPSHOT.pom.sha1
Downloaded https://repo1.maven.org/maven2/org/virtuslab/besom-json_3/0.3.0-SNAPSHOT/besom-json_3-0.3.0-SNAPSHOT.pom.sha1
Downloading https://repo1.maven.org/maven2/org/virtuslab/besom-json_3/0.3.0-SNAPSHOT/maven-metadata.xml
Downloaded https://repo1.maven.org/maven2/org/virtuslab/besom-json_3/0.3.0-SNAPSHOT/maven-metadata.xml
Downloading https://repo1.maven.org/maven2/org/virtuslab/besom-json_3/0.3.0-SNAPSHOT/maven-metadata.xml.sha1
Downloaded https://repo1.maven.org/maven2/org/virtuslab/besom-json_3/0.3.0-SNAPSHOT/maven-metadata.xml.sha1
[error]  Error downloading org.virtuslab:besom-json_3:0.3.0-SNAPSHOT
  not found: /home/runner/.ivy2/local/org.virtuslab/besom-json_3/0.3.0-SNAPSHOT/ivys/ivy.xml
  not found: https://repo1.maven.org/maven2/org/virtuslab/besom-json_3/0.3.0-SNAPSHOT/besom-json_3-0.3.0-SNAPSHOT.pom
  not found: /home/runner/.cache/scalacli/local-repo/1.1.0/org.virtuslab/besom-json_3/0.3.0-SNAPSHOT/ivys/ivy.xml
  No fallback URL found
error: Recipe `compile-cats` failed on line 65 with exit code 1
Error: Process completed with exit code 1.

What happened:

  • during the release one version change slipped through the cracks
  • core was released to maven with the snapshot dependency (irreversible)

Workarounds (any of them should solve the issue):

  1. add //> using dep "org.virtuslab::besom-core:0.3.0" to your project.scala
  2. add //> using repository sonatype:snapshots to your project.scala
  3. upgrade to the upcoming 0.3.1 when it will be released

How to prevent this from happening:

  • the release procedure was updated in two places to catch this type of errors before releasing to maven
@pawelprazak pawelprazak added the P0 Bugs severe enough to interrupt existing work label Apr 16, 2024
@pawelprazak pawelprazak added this to the 0.3.1 milestone Apr 16, 2024
@pawelprazak pawelprazak self-assigned this Apr 16, 2024
@pawelprazak pawelprazak added awaiting-release Fix was merged but not released size/S Estimated effort to complete (1-2 days). kind/bug Some behavior is incorrect or out of spec and removed P0 Bugs severe enough to interrupt existing work labels Apr 16, 2024
@lbialy
Copy link
Collaborator

lbialy commented Apr 21, 2024

tl;dr: 0.3.0 is bork, use 0.3.1+ only, we'll keep this issue open for the lifetime of 0.3.x series (hopefully not a very long time)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-release Fix was merged but not released kind/bug Some behavior is incorrect or out of spec size/S Estimated effort to complete (1-2 days).
Projects
None yet
Development

No branches or pull requests

2 participants