-
Notifications
You must be signed in to change notification settings - Fork 13
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
always dirty #81
Comments
After a new build output of
output of ./gradlew showVersion
|
and the configuration: semver {
snapshotSuffix = "SNAPSHOT" // (default) appended if the commit is without a release tag
dirtyMarker = "dirty" // (default) appended if there are uncommitted changes
initialVersion = "0.1.22" // (default) initial version in semantic versioning
tagPrefix = "v" // (default) each project can have its own tags identified by a unique prefix.
tagType = io.wusa.TagType.LIGHTWEIGHT // (default) options are Annotated or Lightweight
branches { // list of branch configurations
branch {
regex = ".+" // regex for the branch you want to configure, put this one last
incrementer = "NO_VERSION_INCREMENTER" // (default) version incrementer
formatter = Transformer {
"${semver.info.version.major}.${semver.info.version.minor}.${semver.info.version.patch}"
}
}
}
} |
The problem is missing environment variables in the As a test: fun String.runCommand(workingDir: File): String? {
try {
println(">> workingDir: $workingDir")
val parts = this.split("\\s".toRegex())
return ProcessBuilder(*parts.toTypedArray())
.directory(workingDir)
.redirectOutput(ProcessBuilder.Redirect.PIPE)
.redirectError(ProcessBuilder.Redirect.PIPE)
.also { it.environment().putAll(System.getenv()) }
.start()
.apply { waitFor(10, TimeUnit.SECONDS) }
.inputStream.bufferedReader().readText()
} catch(e: IOException) {
e.printStackTrace()
return null
}
}
println("git status -s".runCommand(rootProject.rootDir))
println(GitCommandRunner.execute(project.projectDir, arrayOf("status", "-s"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The branch is clean.
output of
git log
output of
./gradlew showVersion
Happens on my Mac, my colleagues with Linux don't face the problem.
The text was updated successfully, but these errors were encountered: