sbt --version returned a non-zero code: 1

174 views
Skip to first unread message

Jules Ivanic

unread,
Jun 12, 2015, 12:26:24 PM6/12/15
to sbt...@googlegroups.com
Hi,

I'm using Scala in some Docker containers. So, in my containers I have to install Sbt.

This is my Dockerfile : 

FROM colisweb/debian-oracle-java8
MAINTAINER
Jules Ivanic <jules@colisweb.com>


RUN
\


 
# Install sbt
  echo
"deb http://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list \
 
&& apt-get update \
 
&& apt-get install -y --force-yes sbt \


 
&& sbt --version



At the end, I print the sbt version. 

If I let this last line my docker build fail with the following error : 

INFO[0061] The command [/bin/sh -c echo "deb http://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list   && apt-get update   && apt-get install -y --force-yes sbt   && sbt --version] returned a non-zero code: 1


If i remove this last line, my docker build is OK.

Why do "sbt --version" return a non-zero code ??


Jules

Joshua Suereth

unread,
Jun 12, 2015, 12:27:33 PM6/12/15
to sbt-dev
I don't think it's on purpose that it fails, I think we just mirrored what most programs do for a "-help" option.  I also beleive someon (you?) comitted a fix that'll be in the next release of the sbt-launcher + sbt

--
You received this message because you are subscribed to the Google Groups "sbt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sbt-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sbt-dev/0c25b235-b2e2-4407-b224-b63a52d97e98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages