mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
.github/workflows/vettools: fix import paths
This commit is contained in:
parent
4865f0a3da
commit
8d5f5a17d4
@ -45,7 +45,7 @@ type imageImportCheckError struct {
|
||||
|
||||
func runImageImportCheck(pass *analysis.Pass) (interface{}, error) {
|
||||
pkgPath := pass.Pkg.Path()
|
||||
if strings.HasPrefix(pkgPath, "github.com/hajimehoshi/ebiten/v2/example") {
|
||||
if strings.HasPrefix(pkgPath, "github.com/hajimehoshi/ebiten/v2/examples/") {
|
||||
return nil, nil
|
||||
}
|
||||
if strings.HasSuffix(pkgPath, "_test") {
|
||||
@ -53,7 +53,7 @@ func runImageImportCheck(pass *analysis.Pass) (interface{}, error) {
|
||||
}
|
||||
|
||||
// TODO: Remove this exception after v3 is released (#2336).
|
||||
if strings.HasPrefix(pkgPath, "github.com/hajimehoshi/ebiten/v2/ebitenutil") {
|
||||
if pkgPath == "github.com/hajimehoshi/ebiten/v2/ebitenutil" {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user