#1001 Variable bootstrap

tactics Thu 4 Mar 2010

I am one of the lucky users who can't pull directly from the http://hg.fandev.org repository. I found a bundle file in an old topic and after initializing from that, I am able to pull updates as usual.

Still, I hadn't been able to get the boostrap script to work. (Which is lame, because I was the one who wanted it so bad). Today, I decided to find a way to get it to work.

What worked for me was to simply add the hgRepo variable as a script option. Then, I just targeted another repository and poof. Since others may find it helpful, here's a patch. The bootstrap docs probably also need to list the script options.

diff -r 9a858e218fd8 adm/bootstrap.fan
--- a/adm/bootstrap.fan Wed Mar 03 18:01:55 2010 -0600
+++ b/adm/bootstrap.fan Wed Mar 03 18:35:39 2010 -0600
@@ -19,6 +19,7 @@
 // Env
 //////////////////////////////////////////////////////////////////////////

+  @Opt { help = "Mercurial repository to clone" }
   Str hgRepo := "http://hg.fantom.org/repos/fan-1.0"
   Str? hgVer
   Str? jdkVer

KevinKelley Thu 4 Mar 2010

found a bundle file in an old topic and after initializing from that, I am able to pull updates

Dude! That worked. I downloaded the bundle Andy published here, hg clone from that file to a fresh dir; then hg pull from fantom.org, in the newly cloned repo, works. I have no idea why.

Login or Signup to reply.