Skip to content

Commit

Permalink
behavior changed to default in go1.22 without GODEBUG features
Browse files Browse the repository at this point in the history
  • Loading branch information
tulzke committed Sep 27, 2024
1 parent 5b309e7 commit 6fc5cf5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
3 changes: 0 additions & 3 deletions ci/test.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash
# This script is used to ensure that the go.mod file is up to date.

# Compatibility for Go 1.22
export GODEBUG=gotypesalias=1

set -euo pipefail

for i in $(find $PWD -name go.mod); do
Expand Down
12 changes: 3 additions & 9 deletions mockgen/import_mode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,7 @@ func Test_importModeParser_parsePackage(t *testing.T) {
Name: "AddHumans",
In: []*model.Parameter{
{
Type: &model.NamedType{
Package: "go.uber.org/mock/mockgen/internal/tests/import_mode",
Type: "HumansCount",
},
Type: model.PredeclaredType("int"),
},
},
Out: []*model.Parameter{
Expand All @@ -325,7 +322,7 @@ func Test_importModeParser_parsePackage(t *testing.T) {
Len: -1, // slice
Type: &model.NamedType{
Package: "go.uber.org/mock/mockgen/internal/tests/import_mode",
Type: "Human",
Type: "Primate",
},
},
},
Expand All @@ -335,10 +332,7 @@ func Test_importModeParser_parsePackage(t *testing.T) {
Name: "HumanPopulation",
Out: []*model.Parameter{
{
Type: &model.NamedType{
Package: "go.uber.org/mock/mockgen/internal/tests/import_mode",
Type: "HumansCount",
},
Type: model.PredeclaredType("int"),
},
},
},
Expand Down
20 changes: 10 additions & 10 deletions mockgen/internal/tests/import_mode/mock/interfaces.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6fc5cf5

Please sign in to comment.