steps
- Create sbt project with
name:="foo"
- On clean machine with only java and sbt script (or you can use github action with sbt/setup-sbt@v1)
NAME=$(sbt --no-colors --error 'print name' | head -n1)
problem
NAME is copying runtime jar...
expectation
NAME should be foo
workaround
Run sbt first.
notes
|
echo copying runtime jar... |
but there are more instances of echo
Wrapper scripts should never write to stdout, use stderr instead.
steps
name:="foo"NAME=$(sbt --no-colors --error 'print name' | head -n1)problem
NAME is
copying runtime jar...expectation
NAME should be
fooworkaround
Run
sbtfirst.notes
sbt/sbt
Line 483 in 58be943
but there are more instances of echo
Wrapper scripts should never write to stdout, use stderr instead.