Skip to content

Commit

Permalink
[v2] v2.0.0-beta.16
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Nov 8, 2021
1 parent e72b438 commit c64b7bb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion v2/cmd/wails/internal/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package internal

var Version = "v2.0.0-beta.15"
var Version = "v2.0.0-beta.16"
37 changes: 19 additions & 18 deletions v2/internal/gomod/gomod_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package gomod

import (
"github.com/Masterminds/semver"
"github.com/matryer/is"
"reflect"
"testing"

"github.com/Masterminds/semver"
"github.com/matryer/is"
)

const basic string = `module changeme
Expand Down Expand Up @@ -75,7 +76,7 @@ const basicUpdated string = `module changeme
go 1.17
require github.com/wailsapp/wails/v2 v2.0.0-beta.15
require github.com/wailsapp/wails/v2 v2.0.0-beta.16
require (
github.com/andybalholm/brotli v1.0.2 // indirect
Expand Down Expand Up @@ -330,7 +331,7 @@ const multilineRequireUpdated = `module changeme
go 1.17
require (
github.com/wailsapp/wails/v2 v2.0.0-beta.15
github.com/wailsapp/wails/v2 v2.0.0-beta.16
)
require (
Expand Down Expand Up @@ -381,12 +382,12 @@ func TestUpdateGoModVersion(t *testing.T) {
want []byte
wantErr bool
}{
{"basic", args{[]byte(basic), "v2.0.0-beta.15"}, []byte(basicUpdated), false},
{"basicmultiline", args{[]byte(multilineRequire), "v2.0.0-beta.15"}, []byte(multilineRequireUpdated), false},
{"basicmultilinereplace", args{[]byte(multilineReplace), "v2.0.0-beta.15"}, []byte(multilineReplaceUpdated), false},
{"basicmultilinereplaceblock", args{[]byte(multilineReplaceBlock), "v2.0.0-beta.15"}, []byte(multilineReplaceBlockUpdated), false},
{"basicmultilinereplacenoversion", args{[]byte(multilineReplaceNoVersion), "v2.0.0-beta.15"}, []byte(multilineReplaceNoVersionUpdated), false},
{"basicmultilinereplacenoversionblock", args{[]byte(multilineReplaceNoVersionBlock), "v2.0.0-beta.15"}, []byte(multilineReplaceNoVersionBlockUpdated), false},
{"basic", args{[]byte(basic), "v2.0.0-beta.16"}, []byte(basicUpdated), false},
{"basicmultiline", args{[]byte(multilineRequire), "v2.0.0-beta.16"}, []byte(multilineRequireUpdated), false},
{"basicmultilinereplace", args{[]byte(multilineReplace), "v2.0.0-beta.16"}, []byte(multilineReplaceUpdated), false},
{"basicmultilinereplaceblock", args{[]byte(multilineReplaceBlock), "v2.0.0-beta.16"}, []byte(multilineReplaceBlockUpdated), false},
{"basicmultilinereplacenoversion", args{[]byte(multilineReplaceNoVersion), "v2.0.0-beta.16"}, []byte(multilineReplaceNoVersionUpdated), false},
{"basicmultilinereplacenoversionblock", args{[]byte(multilineReplaceNoVersionBlock), "v2.0.0-beta.16"}, []byte(multilineReplaceNoVersionBlockUpdated), false},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand All @@ -413,8 +414,8 @@ func TestGoModOutOfSync(t *testing.T) {
want bool
wantErr bool
}{
{"basic", args{[]byte(basic), "v2.0.0-beta.15"}, true, false},
{"basicmultiline", args{[]byte(multilineRequire), "v2.0.0-beta.15"}, true, false},
{"basic", args{[]byte(basic), "v2.0.0-beta.16"}, true, false},
{"basicmultiline", args{[]byte(multilineRequire), "v2.0.0-beta.16"}, true, false},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand All @@ -433,7 +434,7 @@ const multilineReplaceUpdated = `module changeme
go 1.17
require (
github.com/wailsapp/wails/v2 v2.0.0-beta.15
github.com/wailsapp/wails/v2 v2.0.0-beta.16
)
require (
Expand Down Expand Up @@ -468,14 +469,14 @@ require (
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6 // indirect
)
replace github.com/wailsapp/wails/v2 v2.0.0-beta.15 => C:\Users\leaan\Documents\wails-v2-beta\wails\v2
replace github.com/wailsapp/wails/v2 v2.0.0-beta.16 => C:\Users\leaan\Documents\wails-v2-beta\wails\v2
`
const multilineReplaceNoVersionUpdated = `module changeme
go 1.17
require (
github.com/wailsapp/wails/v2 v2.0.0-beta.15
github.com/wailsapp/wails/v2 v2.0.0-beta.16
)
require (
Expand Down Expand Up @@ -517,7 +518,7 @@ const multilineReplaceNoVersionBlockUpdated = `module changeme
go 1.17
require (
github.com/wailsapp/wails/v2 v2.0.0-beta.15
github.com/wailsapp/wails/v2 v2.0.0-beta.16
)
require (
Expand Down Expand Up @@ -562,7 +563,7 @@ const multilineReplaceBlockUpdated = `module changeme
go 1.17
require (
github.com/wailsapp/wails/v2 v2.0.0-beta.15
github.com/wailsapp/wails/v2 v2.0.0-beta.16
)
require (
Expand Down Expand Up @@ -598,6 +599,6 @@ require (
)
replace (
github.com/wailsapp/wails/v2 v2.0.0-beta.15 => C:\Users\leaan\Documents\wails-v2-beta\wails\v2
github.com/wailsapp/wails/v2 v2.0.0-beta.16 => C:\Users\leaan\Documents\wails-v2-beta\wails\v2
)
`
2 changes: 1 addition & 1 deletion website/docs/gettingstarted/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import TabItem from "@theme/TabItem";

## Installing Wails

Run `go install github.com/wailsapp/wails/v2/cmd/[email protected].15` to install the Wails CLI.
Run `go install github.com/wailsapp/wails/v2/cmd/[email protected].16` to install the Wails CLI.

## System Check

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import TabItem from "@theme/TabItem";

## 安装 Wails

运行 `go install github.com/wailsapp/wails/v2/cmd/[email protected].15` 安装 Wails CLI。
运行 `go install github.com/wailsapp/wails/v2/cmd/[email protected].16` 安装 Wails CLI。

## 系统检查

Expand Down

0 comments on commit c64b7bb

Please sign in to comment.