From cc4fc931b935d3ab2d19ce24569ee9d82a833856 Mon Sep 17 00:00:00 2001 From: caixw Date: Fri, 17 Dec 2021 23:36:29 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E8=87=B3=20v2.3.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- builder/fs.go | 4 +++- internal/vars/version.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/builder/fs.go b/builder/fs.go index c912f9c..ab6c755 100644 --- a/builder/fs.go +++ b/builder/fs.go @@ -11,6 +11,8 @@ import ( ) // WritableFS 带有写入功能的文件系统 +// +// https://github.com/golang/go/issues/45757 type WritableFS interface { fs.FS @@ -57,7 +59,7 @@ func (dir *dirFS) WriteFile(name string, data []byte, perm fs.FileMode) error { return &fs.PathError{Op: "close", Path: name, Err: fs.ErrInvalid} } - p := dir.dir + "/" + name + p := path.Join(dir.dir, name) if err := os.MkdirAll(path.Dir(p), perm); err != nil { return err } diff --git a/internal/vars/version.go b/internal/vars/version.go index 5adc2bd..ad98a38 100644 --- a/internal/vars/version.go +++ b/internal/vars/version.go @@ -3,7 +3,7 @@ package vars var ( - version = "2.0.0" // 版本号,由 goreleaser 负责在编译时更新到最新的 git tag + version = "2.3.0" // 版本号,由 goreleaser 负责在编译时更新到最新的 git tag metadata string fullVersion = version )