{"action":"created","issue":{"url":"https://api.github.com/repos/typesafehub/dbuild/issues/182","labels_url":"https://api.github.com/repos/typesafehub/dbuild/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/typesafehub/dbuild/issues/182/comments","events_url":"https://api.github.com/repos/typesafehub/dbuild/issues/182/events","html_url":"https://github.com/typesafehub/dbuild/issues/182","id":118913982,"number":182,"title":"regression: dbuild is picky about the format of the `version` settings in projects it builds","user":{"login":"SethTisue","id":161079,"avatar_url":"https://avatars.githubusercontent.com/u/161079?v=3","gravatar_id":"","url":"https://api.github.com/users/SethTisue","html_url":"https://github.com/SethTisue","followers_url":"https://api.github.com/users/SethTisue/followers","following_url":"https://api.github.com/users/SethTisue/following{/other_user}","gists_url":"https://api.github.com/users/SethTisue/gists{/gist_id}","starred_url":"https://api.github.com/users/SethTisue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SethTisue/subscriptions","organizations_url":"https://api.github.com/users/SethTisue/orgs","repos_url":"https://api.github.com/users/SethTisue/repos","events_url":"https://api.github.com/users/SethTisue/events{/privacy}","received_events_url":"https://api.github.com/users/SethTisue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-25T20:07:06Z","updated_at":"2015-12-03T20:12:09Z","closed_at":null,"body":"we recently upgraded 2 of the 3 Scala community builds to from dbuild 0.9.1 to 0.9.4.\r\n\r\nin the 2.12 community build, we are now seeing this failure (excerpted from [this log](https://scala-ci.typesafe.com/view/scala-2.12.x/job/scala-2.12.x-integrate-community-build/241/consoleFull)):\r\n\r\n```\r\n[scalaz-stream] --== Building scalaz-stream ==--\r\n[scalaz-stream] Resolving: https://github.com/scalaz/scalaz-stream.git#60eecfdd2e29ba2a789ae411a8653e6201ca3e17 in directory: ./target-0.9.4/project-builds/scalaz-stream-765eea1747f324b13dc0ed707590ff048337a07e\r\n[scalaz-stream] Fetching https://github.com/scalaz/scalaz-stream.git\r\n[scalaz-stream] into /home/jenkins/workspace/scala-2.12.x-integrate-community-build/target-0.9.4/clones/67ec136f8a1eb6a9e0634a1213c79ea659ab521b\r\n[scalaz-stream] Took: 00h 00m 00.7s\r\n[scalaz-stream] Cloning /home/jenkins/workspace/scala-2.12.x-integrate-community-build/target-0.9.4/clones/67ec136f8a1eb6a9e0634a1213c79ea659ab521b\r\n[scalaz-stream] to /home/jenkins/workspace/scala-2.12.x-integrate-community-build/target-0.9.4/project-builds/scalaz-stream-765eea1747f324b13dc0ed707590ff048337a07e\r\n[scalaz-stream] Took: 00h 00m 00.0s\r\n[scalaz-stream] Fetching /home/jenkins/workspace/scala-2.12.x-integrate-community-build/target-0.9.4/clones/67ec136f8a1eb6a9e0634a1213c79ea659ab521b\r\n[scalaz-stream] into /home/jenkins/workspace/scala-2.12.x-integrate-community-build/target-0.9.4/project-builds/scalaz-stream-765eea1747f324b13dc0ed707590ff048337a07e\r\n[scalaz-stream] Took: 00h 00m 00.1s\r\n[scalaz-stream] Resolving artifacts, level 0, space: default\r\n[scalaz-stream] Retrieved from project scala (commit: none): 12 artifacts\r\n[scalaz-stream] Retrieved from project scalacheck (commit: 2809d8d5616eebaa365c890717d30fd8a28368da): 4 artifacts\r\n[scalaz-stream] Retrieved from project scalatest (commit: bff5bd8e9ee874699189e2a1f851716737d91306): 4 artifacts\r\n[scalaz-stream] Retrieved from project scalaz (commit: 727761730750ac611fcb9d91d6491ae235874c09): 29 artifacts\r\n[scalaz-stream] Retrieved from project scodec-bits (commit: bceb361e327a595fbd0a81bf55901195882f382d): 4 artifacts\r\n[scalaz-stream:error] scala.MatchError: snapshot-0.7a (of class java.lang.String)\r\n[scalaz-stream:error] \tat com.typesafe.dbuild.project.build.LocalBuildRunner$.prepareDepsArtifacts(LocalBuildRunner.scala:109)\r\n[scalaz-stream:error] \tat com.typesafe.dbuild.project.build.LocalBuildRunner$$anonfun$runLocalBuild$1.apply(LocalBuildRunner.scala:56)\r\n[scalaz-stream:error] \tat com.typesafe.dbuild.project.build.LocalBuildRunner$$anonfun$runLocalBuild$1.apply(LocalBuildRunner.scala:46)\r\n[scalaz-stream:error] \tat com.typesafe.dbuild.project.build.BuildDirs$.useProjectUniqueBuildDir(BuildDirs.scala:39)\r\n[scalaz-stream:error] \tat com.typesafe.dbuild.project.build.LocalBuildRunner.runLocalBuild(LocalBuildRunner.scala:46)\r\n[scalaz-stream:error] \tat com.typesafe.dbuild.project.build.LocalBuildRunner.checkCacheThenBuild(LocalBuildRunner.scala:35)\r\n[scalaz-stream:error] \tat com.typesafe.dbuild.project.build.BuildRunnerActor$$anonfun$receive$2$$anonfun$apply$1.apply$mcV$sp(BuildRunnerActor.scala:40)\r\n[scalaz-stream:error] \tat com.typesafe.dbuild.project.build.BuildRunnerActor$$anonfun$receive$2$$anonfun$apply$1.apply(BuildRunnerActor.scala:38)\r\n[scalaz-stream:error] \tat com.typesafe.dbuild.project.build.BuildRunnerActor$$anonfun$receive$2$$anonfun$apply$1.apply(BuildRunnerActor.scala:38)\r\n[scalaz-stream:error] \tat com.typesafe.dbuild.project.controller.Controller$.forwardingErrorsToFuturesControlled(Controller.scala:59)\r\n[scalaz-stream:error] \tat com.typesafe.dbuild.project.build.BuildRunnerActor$$anonfun$receive$2.apply(BuildRunnerActor.scala:38)\r\n[scalaz-stream] --== End Building scalaz-stream ==--\r\n```\r\n\r\n@cunei, what do you make of this? perhaps the regex in 0a7f12a7bb505965e3042bb7f88d885724537bb3 isn't quite right?\r\n\r\nin the project in question (scalaz-stream), build.sbt has `version := \"snapshot-0.7a\"`"},"comment":{"url":"https://api.github.com/repos/typesafehub/dbuild/issues/comments/161769573","html_url":"https://github.com/typesafehub/dbuild/issues/182#issuecomment-161769573","issue_url":"https://api.github.com/repos/typesafehub/dbuild/issues/182","id":161769573,"user":{"login":"cunei","id":686260,"avatar_url":"https://avatars.githubusercontent.com/u/686260?v=3","gravatar_id":"","url":"https://api.github.com/users/cunei","html_url":"https://github.com/cunei","followers_url":"https://api.github.com/users/cunei/followers","following_url":"https://api.github.com/users/cunei/following{/other_user}","gists_url":"https://api.github.com/users/cunei/gists{/gist_id}","starred_url":"https://api.github.com/users/cunei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cunei/subscriptions","organizations_url":"https://api.github.com/users/cunei/orgs","repos_url":"https://api.github.com/users/cunei/repos","events_url":"https://api.github.com/users/cunei/events{/privacy}","received_events_url":"https://api.github.com/users/cunei/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T20:12:09Z","updated_at":"2015-12-03T20:12:09Z","body":"@SethTisue, I worked on a patch (bc11e2f) that would allow compilation to proceed in case the version string is incorrectly formatted, as in this case. However, I am not convinced that merging it would be a good idea: considering that much of what dbuild does revolves around version number rewriting, working with version strings that do not conform to the format that many tools expect may lead to all sort of problems. I am rather inclined to keep the current behavior, instead, especially since the version string can always be fixed in a separate fork."}}