summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-05-12 19:12:29 +0200
committerJakob Unterwurzacher2019-05-12 19:12:29 +0200
commit2cb0e8a1aeb42920f965956995d99cd2c8dbaa67 (patch)
tree1ea0f6afc6e167c4dbb89db4b25ad3fc955a4985 /main.go
parentcf99cfd401153c6d92573bca1078348e1a3cc285 (diff)
gocryptfs -version: show architecture
Show the GOOS/GOARCH tuple as displayed by "go version".
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.go b/main.go
index 02cc4ad..40fd8ac 100644
--- a/main.go
+++ b/main.go
@@ -126,7 +126,7 @@ func changePassword(args *argContainer) {
}
// printVersion prints a version string like this:
-// gocryptfs v0.12-36-ge021b9d-dirty; go-fuse a4c968c; 2016-07-03 go1.6.2
+// gocryptfs v1.7-32-gcf99cfd; go-fuse v1.0.0-174-g22a9cb9; 2019-05-12 go1.12 linux/amd64
func printVersion() {
var tagsSlice []string
if stupidgcm.BuiltWithoutOpenssl {
@@ -143,8 +143,9 @@ func printVersion() {
if raceDetector {
built += " -race"
}
- fmt.Printf("%s %s%s; go-fuse %s; %s\n",
- tlog.ProgramName, GitVersion, tags, GitVersionFuse, built)
+ fmt.Printf("%s %s%s; go-fuse %s; %s %s/%s\n",
+ tlog.ProgramName, GitVersion, tags, GitVersionFuse, built,
+ runtime.GOOS, runtime.GOARCH)
}
func main() {