direnv: new recipe [GCI 2017] (#2078)

This commit is contained in:
Xiang Fan
2018-02-16 00:08:02 +08:00
committed by Jérôme Duval
parent 99641e2eb8
commit 8bce33e3c7
2 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
From 59645b0fe39657b3d383bc5494e8a08c494cf195 Mon Sep 17 00:00:00 2001
From: sfanxiang <sfanxiang@gmail.com>
Date: Sun, 7 Jan 2018 06:03:44 +0000
Subject: port to go 1.3
diff --git a/log.go b/log.go
index fa4bb4c..a24727a 100644
--- a/log.go
+++ b/log.go
@@ -51,7 +51,7 @@ func log_debug(msg string, a ...interface{}) {
defer log.SetFlags(log.Flags())
log.SetFlags(log.Flags() | log.Lshortfile)
msg = fmt.Sprintf(msg, a...)
- log.Output(2, msg)
+ log.Print(msg)
}
func logMsg(format, msg string, a ...interface{}) {
--
2.15.0