sbt / sbt/sbt-git

sbt-git v2.0.1: wrong version value returned

Open
#232 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
355
Forks
104
Avg merge
1d 4h
Merged PRs (30d)
4

Description

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)> 

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using project/plugins.sbt, version.sbt, the starlake project, and the sbt shell steps provided. Start by comparing sbt-git 2.0.0 and 2.0.1 behavior around the version setting. Done means the sbt version command returns the explicitly configured 0.6.2 without an added SNAPSHOT suffix.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.