packer-builder-vsphere icon indicating copy to clipboard operation
packer-builder-vsphere copied to clipboard

Builder Version

Open davidwallis opened this issue 6 years ago • 3 comments

Hi,

I'm about there using your builder to provision a template and works great so nice work...

just trying to add versioning info and notice I cant get the notes field to work - that then led to searches that say download releases from teamcity - which is fine.. but how do I determine the version of the exe on my machine? You arent poplulating the properties on the exe, if I try running the plugin it says it should be executed from packer.. how do I do this?

It would also be nice in hindsight to output the version of packer and the builders etc used into the release notes for my build too if I can get these :)

Cheers

David

davidwallis avatar Mar 01 '19 16:03 davidwallis

I've just wasted some time (my own fault - not complaining!) working on the wrong builder version when I'd misread the file-size on disk (Windows reports 2 file sizes - size on disk and file size - I have no idea why), and thought I had the correct version. If you try to run the builder from the command-line, it warns you that the file should be run by packer; could the version number be added to that message, or printed if --version is given?

grahamnicholls avatar Mar 06 '19 15:03 grahamnicholls

I'm guessing this is a no?

davidwallis avatar Mar 21 '19 11:03 davidwallis

looping back around as I'm still trying to generate the info as part of our CI build internally..

Would it be possible to do something like this project allows as part of your build process?

https://github.com/josephspurrier/goversioninfo

I can raise a PR if I can get it to work if you dont have time (Never tried GO!)

Thanks in anticipation 😁

davidwallis avatar Apr 25 '19 10:04 davidwallis