Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sbt bootstrap script writes to stdout breaking scripts #8025

@mwisnicki

Description

@mwisnicki

steps

  1. Create sbt project with name:="foo"
  2. On clean machine with only java and sbt script (or you can use github action with sbt/setup-sbt@v1)
  3. 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

sbt/sbt

Line 483 in 58be943

echo copying runtime jar...

but there are more instances of echo

Wrapper scripts should never write to stdout, use stderr instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugarea/runner-scriptissues around sbt-the-bash-script, or bat script

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions