-
Notifications
You must be signed in to change notification settings - Fork 158
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
Upgrade all dependencies to the latest versions #230
Changes from all commits
18db155
ef035e8
92373c0
7b806de
d07272b
0cc4fb3
6b03028
6ba2dc9
086d687
cfc37f5
c28a56c
0fe8b69
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,4 +1,5 @@ | ||||||||||||||||||||||
logLevel := Level.Warn | ||||||||||||||||||||||
|
||||||||||||||||||||||
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.12") | ||||||||||||||||||||||
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.33") | ||||||||||||||||||||||
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.16") | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: this update induces the following change (among others, which are just uninteresting refactorings) in the Bash script launcher in --- 1/kaitai-struct-compiler-0.11-SNAPSHOT20231021.183147.746d773b/bin/kaitai-struct-compiler
+++ 2/kaitai-struct-compiler-0.11-SNAPSHOT20231023.110424.c6c6db7b/bin/kaitai-struct-compiler
...
@@ -267,7 +283,7 @@ loadConfigFile() {
}
# Now check to see if it's a good enough version
-# TODO - Check to see if we have a configured default java version, otherwise use 1.6
+# TODO - Check to see if we have a configured default java version, otherwise use 1.8
java_version_check() {
readonly java_version=$("$java_cmd" -version 2>&1 | awk -F '"' '/version/ {print $2}')
if [[ "$java_version" == "" ]]; then
@@ -281,10 +297,10 @@ java_version_check() {
if [[ "$major" -eq "1" ]]; then
local major=$(echo "$java_version" | cut -d'.' -f2)
fi
- if [[ "$major" -lt "6" ]]; then
+ if [[ "$major" -lt "8" ]]; then
echo
echo The java installation you have is not up to date
- echo $app_name requires at least version 1.6+, you have
+ echo $app_name requires at least version 1.8+, you have
echo version $java_version
echo
echo Please go to http://www.java.com/getjava/ and download So the version check has been updated to only accept Java 8+, as opposed to Java 6 as before. This change apparently comes from version https://github.com/sbt/sbt-native-packager/releases/tag/v1.9.12:
At least in our case, it turned out that this only improves the error message, since the produced artifacts were compiled for at least Java 8 already. If you try to run the Universal .zip build on Java 7, e.g. via Docker: PS C:\temp\Mingun-upgrade-dependencies> docker run -it -v ${PWD}:/share azul/zulu-openjdk:7
root@699f1294788e:/# java -version
openjdk version "1.7.0_352"
OpenJDK Runtime Environment (Zulu 7.56.0.11-CA-linux64) (build 1.7.0_352-b01)
OpenJDK 64-Bit Server VM (Zulu 7.56.0.11-CA-linux64) (build 24.352-b01, mixed mode)
So, this is purely a slight improvement, not dropping existing support for anything. |
||||||||||||||||||||||
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.1") | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This causes a few changes in the generated
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. BTW, both of these changes are mentioned in the release post: |
||||||||||||||||||||||
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0") |
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.
Just noting that the format of FastParse error messages has changed, so when inserted to our own error message, we often end up with things like
expected Expected ...
. See the comparison ofsbt test
output before and after this PR:It's not that important, but we can think about how to improve this in the future.