Skip to content

Commit

Permalink
chore: 更新至 v2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Dec 17, 2021
1 parent a390f48 commit cc4fc93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion builder/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import (
)

// WritableFS 带有写入功能的文件系统
//
// https://github.com/golang/go/issues/45757
type WritableFS interface {
fs.FS

Expand Down Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion internal/vars/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit cc4fc93

Please sign in to comment.