-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add dotty-doc to dist #2537
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
Add dotty-doc to dist #2537
Conversation
bin/dotd
Outdated
CLASS_PATH="$CLASS_PATH$PSEP$AUTOLINK_LIB" | ||
CLASS_PATH="$CLASS_PATH$PSEP$SNAKEYAML_LIB" | ||
CLASS_PATH="$CLASS_PATH$PSEP$ST4_LIB" | ||
CLASS_PATH="$CLASS_PATH$PSEP$JSOUP_LIB" |
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.
Each line is an isolated dep, allowing us to delete them as they disappear over time.
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.
Would be nice to test this script. Because it hardcodes list of dependencies it is very fragile
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.
Not sure any of the dist scripts are testable like this currently. We'd need to trigger dist/pack-archive
then run the scripts I guess.
WDYT @liufengyun ?
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.
Currently we have a simple CI to check if a release can compile and run a hello world on OSX. The CI runs on Travis, and it's triggered everytime we update the formula.
We can also add dotd
to the same CI to make sure it completes normally.
2f79d97
to
1eb3957
Compare
dist/bin/dotd
Outdated
|
||
first_arg="$1" | ||
|
||
echo $JAVACMD dotty.tools.dottydoc.Main $CLASS_PATH |
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 line is just for testing?
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.
Ah yes, will remove
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.
Otherwise, LGTM.
dist/bin/dotd
Outdated
|
||
echo $JAVACMD dotty.tools.dottydoc.Main $CLASS_PATH | ||
|
||
eval exec "\"$JAVACMD\"" $CLASS_PATH dotty.tools.dottydoc.Main $@ |
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.
BTW, do we need the Scala classpath
for compiling the source? The dotc
script has Dscala.usejavacp=true
or -Xbootclasspath/a:$classpath
, so it's not required.
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.
@felixmulder I guess you missed this comment?
No description provided.