[2.x] fix: Skip native client for sbt new/init commands#8512
[2.x] fix: Skip native client for sbt new/init commands#8512eed3si9n merged 1 commit intosbt:developfrom
Conversation
This means that sbtn is will launch an sbt session in the current directory. Instead, if |
8719821 to
c2607c4
Compare
Thanks for the suggestion! You're right that handling this at the launcher level is cleaner. I've updated the PR to skip the native client entirely when This avoids the whole issue of internal commands leaking into the template arguments since the native client path is never taken for these commands. |
|
the CI failure appears to be unrelated to this PR. the |
|
All passed! |
Fixes #7497
When running 'sbt --client new scala/scala3.g8', the thin client adds internal commands (sbtCompleteExec, resumeFromFailure, sbtPopOnFailure, sbtReportResult, shell) to the command queue. The new command was appending all remainingCommands to the template arguments, causing Giter8 to fail with 'Unknown argument' errors.
Now filters out these internal sbt commands before passing arguments to the template resolver.
Added unit tests for the filtering logic.
Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=94194147