Skip to content

Commit

Permalink
test: fix vendor for go1.22 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmzane authored Feb 27, 2024
1 parent d0b08f8 commit cd0591e
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
uses: go-simpler/.github/.github/workflows/test.yml@main
with:
runs-on: '[ "ubuntu-latest", "windows-latest", "macos-latest" ]'
go-versions: '[ "stable" ]'
lint:
uses: go-simpler/.github/.github/workflows/lint.yml@main
vuln:
Expand Down
2 changes: 1 addition & 1 deletion musttag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ func setupModules(t *testing.T, testdata string) {
err := os.Chdir(filepath.Join(testdata, "src"))
assert.NoErr[F](t, err)

err = exec.Command("go", "mod", "vendor").Run()
err = exec.Command("go", "work", "vendor").Run()
assert.NoErr[F](t, err)
}
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion testdata/src/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ require (
gopkg.in/yaml.v3 v3.0.1
)

replace example.com/custom => ./custom
replace example.com/custom => ./example.com/custom
2 changes: 1 addition & 1 deletion testdata/src/go.work
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ go 1.20

use (
.
./custom
./example.com/custom
)

0 comments on commit cd0591e

Please sign in to comment.