- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Fix to fjbg, do I need to replace starr?
Wed, 2012-02-01, 14:44
Hi,
I have a bug-fix that touches src/fjbg. I'm wondering what I should do once I implement my fix? Should I rebuild a whole new starr so those changes are propagated to lib/fjbg.jar file?
I was thinking about just rebuilding fjbg.jar using 'libs.fjbgpack' target and copying it manually to lib directory. My change is binary compatible so I don't think it would cause any problems. Thoughts?
--
Grzegorz Kossakowski
I have a bug-fix that touches src/fjbg. I'm wondering what I should do once I implement my fix? Should I rebuild a whole new starr so those changes are propagated to lib/fjbg.jar file?
I was thinking about just rebuilding fjbg.jar using 'libs.fjbgpack' target and copying it manually to lib directory. My change is binary compatible so I don't think it would cause any problems. Thoughts?
--
Grzegorz Kossakowski
Wed, 2012-02-01, 17:01
#2
Re: Fix to fjbg, do I need to replace starr?
On 1 February 2012 16:30, Paul Phillips <paulp@improving.org> wrote:
Thanks. A pull request will follow shortly.
Regarding the fact that people might not have updated fjbg.jar file. It's not a terrible situation because it's going to only affect those that use -Yvirtpatmat and happen to have pattern exactly like this:
(x: Int) match { case _ => ... }
(with no other cases defined)
You can see we I don't need to worry about it too much.
--
Grzegorz Kossakowski
On Wed, Feb 1, 2012 at 5:44 AM, Grzegorz Kossakowski
<grzegorz.kossakowski@gmail.com> wrote:
> I have a bug-fix that touches src/fjbg. I'm wondering what I should do once
> I implement my fix? Should I rebuild a whole new starr so those changes are
> propagated to lib/fjbg.jar file?
>
> I was thinking about just rebuilding fjbg.jar using 'libs.fjbgpack' target
> and copying it manually to lib directory. My change is binary compatible so
> I don't think it would cause any problems. Thoughts?
All you need to do is replace fjbg.jar with your updated one, and then
run ./push-binary-libs.sh (with arguments of username and password
which allow you to push to artifactory - jsuereth can give you those
if you don't have them.) After that you will notice the
fjbg.sha1.desired file has been updated, at which point you can check
that in, and once it is merged into trunk future people will pull the
new fjbg.jar.
Those future people will have to run pull-binary-libs.sh manually to
get the update (or maybe it works automatically if you use sbt, but
I'm still on ant, where it will notice a change to scala-compiler.jar
and pull new libs, but not to anything else because it is comically
challenging to write a conditional like if "a or b or c" in antese.)
Thanks. A pull request will follow shortly.
Regarding the fact that people might not have updated fjbg.jar file. It's not a terrible situation because it's going to only affect those that use -Yvirtpatmat and happen to have pattern exactly like this:
(x: Int) match { case _ => ... }
(with no other cases defined)
You can see we I don't need to worry about it too much.
--
Grzegorz Kossakowski
On Wed, Feb 1, 2012 at 5:44 AM, Grzegorz Kossakowski
wrote:
> I have a bug-fix that touches src/fjbg. I'm wondering what I should do once
> I implement my fix? Should I rebuild a whole new starr so those changes are
> propagated to lib/fjbg.jar file?
>
> I was thinking about just rebuilding fjbg.jar using 'libs.fjbgpack' target
> and copying it manually to lib directory. My change is binary compatible so
> I don't think it would cause any problems. Thoughts?
All you need to do is replace fjbg.jar with your updated one, and then
run ./push-binary-libs.sh (with arguments of username and password
which allow you to push to artifactory - jsuereth can give you those
if you don't have them.) After that you will notice the
fjbg.sha1.desired file has been updated, at which point you can check
that in, and once it is merged into trunk future people will pull the
new fjbg.jar.
Those future people will have to run pull-binary-libs.sh manually to
get the update (or maybe it works automatically if you use sbt, but
I'm still on ant, where it will notice a change to scala-compiler.jar
and pull new libs, but not to anything else because it is comically
challenging to write a conditional like if "a or b or c" in antese.)