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
Move to SBT Pack instead of Assembly #78
Conversation
Codecov Report
@@ Coverage Diff @@
## master #78 +/- ##
==========================================
- Coverage 70.11% 69.55% -0.57%
==========================================
Files 22 22
Lines 947 959 +12
Branches 127 127
==========================================
+ Hits 664 667 +3
- Misses 283 292 +9
Continue to review full report at Codecov.
|
@@ -174,7 +160,6 @@ lazy val ratatoolCli = project | |||
name := "ratatool-cli", | |||
libraryDependencies ++= Seq( | |||
"com.github.scopt" %% "scopt" % scoptVersion, | |||
"org.apache.parquet" % "parquet-avro" % parquetVersion, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did we mean to remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea I think it ended up there as an artifact during the project restructure but seems to work fine without
| Usage: ratatool [bigDiffy|bigSampler|directSampler] [args] | ||
""".stripMargin | ||
|
||
if (args.isEmpty || !Set("bigDiffy", "bigSampler", "directSampler").contains(args.head)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we make these variables constants
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
//scalastyle:off cyclomatic.complexity | ||
def main(args: Array[String]): Unit = { | ||
val usage = """ | ||
| Ratatool - a tool for random data generation and sampling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about diffing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch
} | ||
|
||
val o = opts.get | ||
o.mode match { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of get
could we do opts.foreach
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really cool nicely done
Do we need to update any documentation
Yes definitely need to update docs, will roll that into this PR as well |
#78
#77
#76
and potentially #67
We want to be able to move to SBT Pack instead of assembly to simplify the dependency management and avoid conflicts with building the fat jar. To make the usage easier, we reduce to a single main so that there is only one entry point, and those who brew install can still use
ratatool [args]
to run commandsShould keep spotify/homebrew-public#24 in sync and merge that PR when this one is merged