Skip to content

Commit

Permalink
Fix test for Go 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
breml committed Feb 29, 2024
1 parent c3a9efc commit 69b8e73
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions testdata/src/alltest/simple/function/func_go122.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//go:build go1.22

package function

import (
"github.com/google/uuid" // want "Package github.com/google/uuid has not allowed capability CAPABILITY_FILES" "Package github.com/google/uuid has not allowed capability CAPABILITY_NETWORK" "Package github.com/google/uuid has not allowed capability CAPABILITY_REFLECT"
)

func Call() {

Check failure on line 9 in testdata/src/alltest/simple/function/func_go122.go

View workflow job for this annotation

GitHub Actions / Go (1.22, ubuntu-latest)

Call redeclared in this block

Check failure on line 9 in testdata/src/alltest/simple/function/func_go122.go

View workflow job for this annotation

GitHub Actions / Go (1.22, ubuntu-latest)

Call redeclared in this block

Check failure on line 9 in testdata/src/alltest/simple/function/func_go122.go

View workflow job for this annotation

GitHub Actions / Go (1.22, ubuntu-latest)

Call redeclared in this block

Check failure on line 9 in testdata/src/alltest/simple/function/func_go122.go

View workflow job for this annotation

GitHub Actions / Go (1.22, ubuntu-latest)

Call redeclared in this block

Check failure on line 9 in testdata/src/alltest/simple/function/func_go122.go

View workflow job for this annotation

GitHub Actions / Go (1.x, ubuntu-latest)

Call redeclared in this block

Check failure on line 9 in testdata/src/alltest/simple/function/func_go122.go

View workflow job for this annotation

GitHub Actions / Go (1.x, ubuntu-latest)

Call redeclared in this block

Check failure on line 9 in testdata/src/alltest/simple/function/func_go122.go

View workflow job for this annotation

GitHub Actions / Go (1.x, ubuntu-latest)

Call redeclared in this block

Check failure on line 9 in testdata/src/alltest/simple/function/func_go122.go

View workflow job for this annotation

GitHub Actions / Go (1.x, ubuntu-latest)

Call redeclared in this block

Check failure on line 9 in testdata/src/alltest/simple/function/func_go122.go

View workflow job for this annotation

GitHub Actions / Go (1.22, macos-latest)

Call redeclared in this block

Check failure on line 9 in testdata/src/alltest/simple/function/func_go122.go

View workflow job for this annotation

GitHub Actions / Go (1.22, macos-latest)

Call redeclared in this block

Check failure on line 9 in testdata/src/alltest/simple/function/func_go122.go

View workflow job for this annotation

GitHub Actions / Go (1.22, macos-latest)

Call redeclared in this block

Check failure on line 9 in testdata/src/alltest/simple/function/func_go122.go

View workflow job for this annotation

GitHub Actions / Go (1.22, macos-latest)

Call redeclared in this block
uuid.GetTime() // regular function call is reported
}

0 comments on commit 69b8e73

Please sign in to comment.