Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
huyongfeng committed Nov 25, 2022
1 parent a5def06 commit 7994b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzer/python/req.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
}
Expand Down

0 comments on commit 7994b53

Please sign in to comment.