Repository navigation
Conversation
…ility scala-cli compile rejects --java-prop, so the probe always failed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem: when a flow failed with an ordinary error (exit 1–127), the shell said "This flow pins an orca version incompatible with the shell … re-run with --honor-pin" (interactive mode offered a pinned re-run instead).
Why: after a failure, the shell runs
scala-cli compileto check whether the flow compiles. That command passed--java-prop, whichscala-cli compiledoesn't accept. So the check always failed, and every failure looked like a version problem.Fix: don't pass
--java-proptoscala-cli compile. It's only needed at run time.Tests:
CompileProbeTestruns the real compile command throughscala-cli. It fails before the fix ("Unrecognized argument: --java-prop") and passes after. It's added to the CIflow-scriptsjob.flow fail.sc finished (exit 1), with no pin message. Shell 0.2.1 shows the pin message.testFull,scalafmtCheckAll, zero warnings.🤖 Generated with Claude Code