acmetool: fix build

This commit is contained in:
Enno Boland 2018-01-11 09:20:36 +01:00
parent a89d3da794
commit 5d923ec84d
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,12 @@
--- storage/types.go.orig 2018-01-11 08:57:49.339089353 +0100
+++ storage/types.go 2018-01-11 08:58:12.707027749 +0100
@@ -194,7 +194,8 @@ func (tgt *Target) ensureFilename() {
nprefix = tgt.Satisfy.Names[0] + "-"
}
- b := uuid.NewV4().Bytes()
+ u, _ := uuid.NewV4()
+ b := u.Bytes()
str := strings.ToLower(strings.TrimRight(base32.StdEncoding.EncodeToString(b), "="))
tgt.Filename = nprefix + str

View File

@ -1,7 +1,7 @@
# Template file for 'acmetool'
pkgname=acmetool
version=0.0.62
revision=1
revision=2
wrksrc="acme-${version}"
build_style=go
go_import_path=github.com/hlandau/acme