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

github gives us 422 when using Scala 3.0.0-M3 #33

Open
hedefalk opened this issue Feb 1, 2021 · 3 comments
Open

github gives us 422 when using Scala 3.0.0-M3 #33

hedefalk opened this issue Feb 1, 2021 · 3 comments

Comments

@hedefalk
Copy link

hedefalk commented Feb 1, 2021

We're trying a Scala 3 upgrade and were having problems publishing to github packages when our Scala version is "3.0.0-M3", getting 422 responses.

2.13 works fine:

[info] published iam-policy_2.13 to https://maven.pkg.github.com/OurOrg/iam-policy/rat/iam-policy_2.13/1.0.1-RC1/iam-policy_2.13-1.0.1-RC1.pom

while pushing these with "3.0.0-M3" fails with 422:

[error] java.io.IOException: Server returned HTTP response code: 422 for URL: https://maven.pkg.github.com/OurOrg/iam-policy/rat/iam-policy_3.0.0-M3/2.0.0-RC2/iam-policy_3.0.0-M3-2.0.0-RC2.pom

The only thing I seem to see plausible is some kind of github-specific semver check breaking because of the '-' in the artifact name that's not there in 2.13.

Is there any known workaround or am I missing something obvious?

@hedefalk hedefalk changed the title github gives us 422 when using Scala 3.0.0-M2 github gives us 422 when using Scala 3.0.0-M3 Feb 1, 2021
@labra
Copy link

labra commented Apr 10, 2021

The same is happening for us trying to publish scala-3.0.0-RC2 in this repo.

I wonder if this is related with the suffix RC2 similar to using SNAPSHOTS as in this issue #23

@djspiewak
Copy link
Owner

This is fascinating! I don't think it's a semver check because I've successfully published hash-snapshot artifacts to github packages. I'll investigate further, but unfortunately my guess is a bug on their end.

@labra
Copy link

labra commented Apr 11, 2021

Do you know if there are other repos which are able to publish scala-3.0.0-RC2 githup packages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants