Skip to content

sbt-git v2.0.1: wrong version value returned  #232

@hayssams

Description

@hayssams

using version 2.0.1, sbt shell return the wrong value for the version setting key. We had to rollback to sbt-git version 2.0.0.

Steps to reproduce:

  • Clone this GitHub Project
  • Update sbt-git version to 2.0.1 in project/plugins.sbt
  • Set version value to 0.6.2 in version.sbt
  • request version in sbt shell
    A version suffixed by SNAPSHOT is returned instead of the value set above
$ git clone https://github.com/starlake-ai/starlake.git
$ cd starlake/
$ cat 'ThisBuild / version := "0.6.2"' >version.sbt 
$ vi project/plugins.sbt # and replace "sbt-git" % "2.0.0" with "sbt-git" % "2.0.1"
$ sbt
[info] welcome to sbt 1.8.2 (Azul Systems, Inc. Java 11.0.16.1)
[info] loading settings for project starlake from build.sbt,version.sbt ...
[info] sbt server started at local:/$HOME/.sbt/1.0/server/a3b0316bf4184aff34d6/sock
[info] started sbt server
sbt (starlake)> version
[info] 0.6.2-1-g94f8c24-SNAPSHOT-SNAPSHOT
sbt (starlake)> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions