ghq: fix go-1.11 build

This commit is contained in:
Michael Gehring 2018-08-25 14:45:00 +02:00 committed by maxice8
parent 289db00348
commit 24f93bd507
2 changed files with 34 additions and 1 deletions

View file

@ -0,0 +1,34 @@
From 344a2a8a0eea18db2f24dec7cae395f1e1621db7 Mon Sep 17 00:00:00 2001
From: Yota Toyama <raviqqe@gmail.com>
Date: Fri, 17 Aug 2018 01:32:04 +0000
Subject: [PATCH] Use new constructor for logger
---
utils/log.go | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git utils/log.go b/utils/log.go
index fa4c4e4..135699b 100644
--- utils/log.go
+++ utils/log.go
@@ -6,7 +6,7 @@ import (
"github.com/motemen/go-colorine"
)
-var logger = &colorine.Logger{
+var logger = colorine.NewLogger(
colorine.Prefixes{
"git": colorine.Verbose,
"hg": colorine.Verbose,
@@ -23,10 +23,7 @@ var logger = &colorine.Logger{
"authorized": colorine.Notice,
"error": colorine.Error,
-
- "": colorine.Info,
- },
-}
+ }, colorine.Info)
func Log(prefix, message string) {
logger.Log(prefix, message)

View file

@ -1,4 +1,3 @@
broken="failing to compile with go-1.11"
# Template file for 'ghq'
pkgname=ghq
version=0.8.0