sbt / sbt-dynver

An sbt plugin to dynamically set your version from git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow hashtag-in-tag

eed3si9n opened this issue · comments

Ref sbt/sbt-ci-release#102 (comment)

steps

$ git tag v1.4.0-M2#something
$ sbt
....
sbt:IO Root> version
[info] io / version
[info] 	1.4.0-M2#something
[info] version
[info] 	1.4.0-M2#something

problem

version is set to 1.4.0-M2#something.

expectation

I'd like the version to be set to 1.4.0-M2 removing # and subsequent letters.

Here's how you can post-process the string, to customize the resulting version: https://github.com/dwijnand/sbt-dynver#custom-version-string.