-
Notifications
You must be signed in to change notification settings - Fork 57
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
Since v2.5.0 fs2-grpc-runtime_2.13-2.5.0.jar
is actually a Scala 3 artifact ...
#620
Comments
@armanbilge oh oh :/ Do you know what is the cause? |
hey @ahjohannessen could it be something in the release / CI process? when i run ❯ git checkout v2.5.12
HEAD is now at 5e2ae15 Run prePR with sbt-typelevel
❯ sbt publishLocal
...
[info] published fs2-grpc-runtime_2.13 to /home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.13/2.5.12/jars/fs2-grpc-runtime_2.13.jar
❯ jar tf /home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.13/2.5.12/jars/fs2-grpc-runtime_2.13.jar | grep tasty
❯ echo $?
1 |
@mackenziestarr It might well be something in CI, the publish command in the workflow is The project uses sbt-projectmatrix because ScalaPB related things use that. It could be some combination of sbt-typelevel settings and sbt-projectmatrix settings that cause this. |
Could it be this? |
@armanbilge that might well be it? :) |
@armanbilge I have tried various permutations with |
@armanbilge @ahjohannessen played with this a bit more and I managed to get # clear local ivy cache
$ rm -rf /home/mstarr/.ivy2/local/org.typelevel
# doing sbt clean before release command
$ sbt clean
$ sbt tlReleaseLocal
# looks good!
$ for i in 2.12 2.13 3; do (artifact=~/.ivy2/local/org.typelevel/fs2-grpc-runtime_$i/**/jars/fs2-grpc-runtime_$i.jar; echo $artifact; grep '.tasty' $artifact); done
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.12/2.5.12/jars/fs2-grpc-runtime_2.12.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.13/2.5.12/jars/fs2-grpc-runtime_2.13.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_3/2.5.12/jars/fs2-grpc-runtime_3.jar
grep: /home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_3/2.5.12/jars/fs2-grpc-runtime_3.jar: binary file matches
# clear local ivy cache, again
$ rm -rf /home/mstarr/.ivy2/local/org.typelevel
# run without sbt clean
$ sbt tlReleaseLocal
# oops, all scala 3
$ for i in 2.12 2.13 3; do (artifact=~/.ivy2/local/org.typelevel/fs2-grpc-runtime_$i/**/jars/fs2-grpc-runtime_$i.jar; echo $artifact; grep '.tasty' $artifact); done
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.12/2.5.12/jars/fs2-grpc-runtime_2.12.jar
grep: /home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.12/2.5.12/jars/fs2-grpc-runtime_2.12.jar: binary file matches
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.13/2.5.12/jars/fs2-grpc-runtime_2.13.jar
grep: /home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.13/2.5.12/jars/fs2-grpc-runtime_2.13.jar: binary file matches
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_3/2.5.12/jars/fs2-grpc-runtime_3.jar
grep: /home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_3/2.5.12/jars/fs2-grpc-runtime_3.jar: binary file matches |
@mackenziestarr I tried changing the publish command to Looking at the publish logs makes me think that something is off. |
hey @ahjohannessen sorry to hear that, i was hopeful 🤞 - I played with this some more and think I may be on to something with this patch https://gist.github.com/mackenziestarr/2dce93557cb27c667289cef19c23eb77 It should probably be cleaned up a bit but I was able to run multiple invocations of $ for i in 2.12 2.13 3; do (artifact=~/.ivy2/local/org.typelevel/fs2-grpc-runtime_$i/**/jars/fs2-grpc-runtime_$i.jar; echo $artifact; grep '.tasty' $artifact); done
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.12/2.5.11-8-5e2ae15-20230605T172700Z-SNAPSHOT/jars/fs2-grpc-runtime_2.12.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.12/2.5.11-8-5e2ae15-20230605T172730Z-SNAPSHOT/jars/fs2-grpc-runtime_2.12.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.12/2.5.11-8-5e2ae15-20230605T172804Z-SNAPSHOT/jars/fs2-grpc-runtime_2.12.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.13/2.5.11-8-5e2ae15-20230605T172708Z-SNAPSHOT/jars/fs2-grpc-runtime_2.13.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.13/2.5.11-8-5e2ae15-20230605T172740Z-SNAPSHOT/jars/fs2-grpc-runtime_2.13.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.13/2.5.11-8-5e2ae15-20230605T172814Z-SNAPSHOT/jars/fs2-grpc-runtime_2.13.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_3/2.5.11-8-5e2ae15-20230605T172711Z-SNAPSHOT/jars/fs2-grpc-runtime_3.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_3/2.5.11-8-5e2ae15-20230605T172743Z-SNAPSHOT/jars/fs2-grpc-runtime_3.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_3/2.5.11-8-5e2ae15-20230605T172817Z-SNAPSHOT/jars/fs2-grpc-runtime_3.jar
grep: /home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_3/2.5.11-8-5e2ae15-20230605T172711Z-SNAPSHOT/jars/fs2-grpc-runtime_3.jar: binary file matches
grep: /home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_3/2.5.11-8-5e2ae15-20230605T172743Z-SNAPSHOT/jars/fs2-grpc-runtime_3.jar: binary file matches
grep: /home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_3/2.5.11-8-5e2ae15-20230605T172817Z-SNAPSHOT/jars/fs2-grpc-runtime_3.jar: binary file matches
maybe you can try it with |
That patch looks reasonable to me, it fixes the problem I suspected in #620 (comment). |
ah yes i wouldn't have gotten this far without your comment there, so thanks for that @armanbilge! |
I will take a look when I am at a computer 👍🏻 |
@mackenziestarr I will give it a try now. @armanbilge I get an error with the message "Bug generating artifact download steps" on my machine when using sbt-typelevel 0.4.21 <= :/ |
@mackenziestarr I can see that you assigned |
hey @ahjohannessen thanks for trying out the patch, I saw @armanbilge linked one of their sbt-projectmatrix builds in discord https://discord.com/channels/632277896739946517/940325169057107968/1103716618363740200 using that as inspiration I added https://gist.github.com/mackenziestarr/768bad44e7a814cb9172fa9ae7dd4cdc curious if this would work since it still seems to be producing the right artifacts with for i in 2.12 2.13 3; do (artifact=~/.ivy2/local/org.typelevel/fs2-grpc-runtime_$i/**/jars/fs2-grpc-runtime_$i.jar; echo $artifact; grep '.tasty' $artifact); done
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.12/2.5.11-8-5e2ae15-20230606T133959Z-SNAPSHOT/jars/fs2-grpc-runtime_2.12.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.12/2.5.11-8-5e2ae15-20230606T134009Z-SNAPSHOT/jars/fs2-grpc-runtime_2.12.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.13/2.5.11-8-5e2ae15-20230606T134006Z-SNAPSHOT/jars/fs2-grpc-runtime_2.13.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_2.13/2.5.11-8-5e2ae15-20230606T134009Z-SNAPSHOT/jars/fs2-grpc-runtime_2.13.jar
/home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_3/2.5.11-8-5e2ae15-20230606T134009Z-SNAPSHOT/jars/fs2-grpc-runtime_3.jar
grep: /home/mstarr/.ivy2/local/org.typelevel/fs2-grpc-runtime_3/2.5.11-8-5e2ae15-20230606T134009Z-SNAPSHOT/jars/fs2-grpc-runtime_3.jar: binary file matches |
Ahh, thanks for digging that up! Yes, that's exactly what I suggest to do in this case, it should work. |
@mackenziestarr This PR is green. I had to add
because otherwise it results in an error about repeated kind-projector. |
@ahjohannessen hooray 🙌 I saw that warning as well, thanks for adding |
@mackenziestarr I published v2.7.1 - Let's see how goes :) |
Seems like 2.7.1 produces proper fs2-grpc-runtime_2.13-2.7.1.jar now, can you verify @mackenziestarr |
@ahjohannessen pulled in the dep and it looks great, thanks so much for working with me on this and a big thanks to @armanbilge for blazing the trail |
Very nice work, thanks everyone!! |
The text was updated successfully, but these errors were encountered: