Closed Iltotore closed 2 months ago
🤔 looking at the logs I'm not really sure. It's odd that it doesn't even compile anything, like it doesn't pick up the modules that need to be published at all. One thing we could try to do is add extra logging right after here to log out the modules that it found and is expected to publish. Then we could see if it's actually picking up the modules you'd expect. It might not be, and then just skipping everything else.
Using this task:
def publishAll(ev: Evaluator) = T.command {
val modules = ev.rootModule.millInternal.modules.collect { case m: CiReleaseModule => m }
T.log.info(s"Modules: $modules")
}
I get the following:
Modules: List(docs, main, main.js, tyrian, zio)
which is the expected result.
I ran into the same issue. I managed to set up IntelliJ to debug the plugin run and found out that internally there was a Result.Failure
about no developer being defined.
That error was lost along the way though.
This code block where different Result.Failure
s are instantiated, but the result is just cast to Unit
looks suspicious.
@ckipp01 what is the intention here? Shouldn't the Result.Failure
be propagated to the caller so that Mill can forward and show the error to the user?
I ran into the same issue. I managed to set up IntelliJ to debug the plugin run and found out that internally there was a
Result.Failure
about no developer being defined.
I'm not sure this (thought it is indeed a problem) is the bug actually causing this issue in my case. I defined the developers in my pomSettings
. Did I miss something?
It doesn't have to be the developers parameter. I'd recommend going through all the checks in the link above concerning the lost Result.Failure
and check if any of them could be the issue.
I ran into the same issue. I managed to set up IntelliJ to debug the plugin run and found out that internally there was a
Result.Failure
about no developer being defined. That error was lost along the way though. This code block where differentResult.Failure
s are instantiated, but the result is just cast toUnit
looks suspicious. @ckipp01 what is the intention here? Shouldn't theResult.Failure
be propagated to the caller so that Mill can forward and show the error to the user?
To be honest, looking back, I'm not 100% sure why I did that. Feel free to try and adjust it and send in a PR.
Finally had the time to work on this issue on my project and I confirm this was caused by an error on my side silenced by the problem fixed in #118. The artifacts did upload. Will update this message and eventually close this issue once the artifacts are available on Central and I checked they are ok.
Version: 0.1.9 Action Logs: https://github.com/pidoveproject/scala-showdown-api/actions/runs/7398615577/job/20128141194 Workflow file: https://github.com/pidoveproject/scala-showdown-api/actions/runs/7398615577/workflow
When the
publishAll
task is executed, the following logs appear:But the project is not published (not even compiled). This is the first time such issue is happening to me despite using the same workflow file and build.sc for other projects. See this one for example.
Running
publishAll
in local returns the same result. I don't know if it's a bug or a mistake on my side.