Skip to content

Commit cd0591e

Browse files
authored
test: fix vendor for go1.22 (#81)
1 parent d0b08f8 commit cd0591e

File tree

6 files changed

+4
-3
lines changed

6 files changed

+4
-3
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
uses: go-simpler/.github/.github/workflows/test.yml@main
1313
with:
1414
runs-on: '[ "ubuntu-latest", "windows-latest", "macos-latest" ]'
15+
go-versions: '[ "stable" ]'
1516
lint:
1617
uses: go-simpler/.github/.github/workflows/lint.yml@main
1718
vuln:

musttag_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ func setupModules(t *testing.T, testdata string) {
6666
err := os.Chdir(filepath.Join(testdata, "src"))
6767
assert.NoErr[F](t, err)
6868

69-
err = exec.Command("go", "mod", "vendor").Run()
69+
err = exec.Command("go", "work", "vendor").Run()
7070
assert.NoErr[F](t, err)
7171
}
File renamed without changes.

testdata/src/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ require (
1010
gopkg.in/yaml.v3 v3.0.1
1111
)
1212

13-
replace example.com/custom => ./custom
13+
replace example.com/custom => ./example.com/custom

testdata/src/go.work

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ go 1.20
22

33
use (
44
.
5-
./custom
5+
./example.com/custom
66
)

0 commit comments

Comments
 (0)