Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitVersioning and git submodules #103

Closed
irundaia opened this issue Jan 7, 2016 · 3 comments
Closed

GitVersioning and git submodules #103

irundaia opened this issue Jan 7, 2016 · 3 comments

Comments

@irundaia
Copy link

irundaia commented Jan 7, 2016

Hi,

I'm using GitVersioning to determine the version of my sbt project. I'm having a problem with a submodule though. I'm using a tagged commit (on the master branch) from a different git repository. Since the release, new commit have been added to the master branch.

Now, git reports that my working directory is clean (for both my main repo and the submodule's repo). However, due to the fact that submodule's in a detached HEAD state the version of my project is appended with -SNAPSHOT.

Any idea on how I could solve this (short of overriding the version manually)?

@bchazalet
Copy link
Contributor

if you're only annoyed by the -SNAPSHOT, you can suppress that suffix by overriding uncommittedSignifier, e.g in your build.sbt:

git.uncommittedSignifier := None

@bchazalet
Copy link
Contributor

Otherwise, I think we're having multiple issues with projects containing git submodules or more than one git repo (like #97). I don't think anyone really thought carefully about those kind of projects, and it's time that we do.

@irundaia
Copy link
Author

irundaia commented Jan 7, 2016

Well, the point is, when I try to publish the project, bintray won't accept it since it only accepts numeric versions.

Thanks for the workaround though.

@irundaia irundaia closed this as completed Jan 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants