From 7ec05423ce9a6cd6aaf8bcaa42d48f5e8fdf707a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 19 Jan 2014 15:48:56 -0800 Subject: [PATCH] Update CHANGELOG --- CHANGELOG.md | 4 ++++ packer/version.go | 3 +++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bf4eb9af..c08ffef01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## 0.5.2 (unreleased) +IMPROVEMENTS: + +* core: Most downloads made by Packer now use a custom user agent. [GH-803] + BUG FIXES: * core: Fix crash case if blank parameters are given to Packer. [GH-832] diff --git a/packer/version.go b/packer/version.go index dea8eb822..7fb36c926 100644 --- a/packer/version.go +++ b/packer/version.go @@ -39,6 +39,9 @@ func (versionCommand) Synopsis() string { return "print Packer version" } +// VersionString returns the Packer version in human-readable +// form complete with pre-release and git commit info if it is +// available. func VersionString() string { var versionString bytes.Buffer fmt.Fprintf(&versionString, "Packer v%s", Version)