From 7994b532373e0fa9c047553f803819baa3b4efe2 Mon Sep 17 00:00:00 2001 From: huyongfeng Date: Fri, 25 Nov 2022 15:21:39 +0800 Subject: [PATCH] fix error --- analyzer/python/req.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyzer/python/req.go b/analyzer/python/req.go index 87b7f23e..1283a595 100644 --- a/analyzer/python/req.go +++ b/analyzer/python/req.go @@ -165,7 +165,7 @@ func getOutData(file *model.FileInfo, dir string) []string { // 将组件名与版本号写入requirements.in文件单独调用pip-compile,获取打印数据 func getSingleModStr(reqpath string, elem string) string { - f, err := os.OpenFile(reqpath, os.O_CREATE, 0744) + f, err := os.OpenFile(reqpath, os.O_RDWR, 0755) if err != nil { return "" }