#2291 Pod version

shakeshuck Mon 2 Jun 2014

Sorry if this is in the docs somewhere, but how do I get the version number for an existing pod?

I decided to jump in at the deep end and try some SQL, but the build script wants a version number for the depends. "1.0" works, but I don't know how to find the current sql pod version number.

Thanks,

Graham.

SlimerDude Mon 2 Jun 2014

Hi Graham,

Try the docs for Pod, but in short:

Pod.find("sql").version

As sql is a core Fantom pod, its version is the same as Fantom. So currently it is 1.0.66. But for a dependency on a core pod, "1.0" is fine.

SlimerDude Mon 2 Jun 2014

From the command line:

C:\> fan -pods

will list all the pods (and versions) you currently have installed on your system.

Typically these pods live in %FAN_HOME%/lib/fan/.

shakeshuck Mon 2 Jun 2014

Thanks, Slimer.

I looked at your initial post but was uncertain if I'd need to use sql which would of course need a depends and cause a cyclic issue...

But it didn't. :)

The new post is simpler anyhow!

SlimerDude Tue 3 Jun 2014

would of course need a depends and cause a cyclic issue...

Yeah, I wasn't sure of that myself! :)

The list of pods in depends in build.fan is for statically typed classes. It primes the compiler to allow using statements and qualified type names.

Login or Signup to reply.