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 )