mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	_scripts: update staticcheck version (#3839)
Update version of staticcheck and reenable for go1.23
This commit is contained in:
		 Alessandro Arzilli
					Alessandro Arzilli
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							bef326c6a5
						
					
				
				
					commit
					2a9af735d0
				
			| @ -54,7 +54,7 @@ export GOPATH | |||||||
| export PATH=$PATH:$GOROOT/bin:$GOPATH/bin | export PATH=$PATH:$GOROOT/bin:$GOPATH/bin | ||||||
| go version | go version | ||||||
| if [ "$arch" != "ppc64le" ]; then | if [ "$arch" != "ppc64le" ]; then | ||||||
| 	go install honnef.co/go/tools/cmd/staticcheck@2023.1.6 || true | 	go install honnef.co/go/tools/cmd/staticcheck@2024.1.1 || true | ||||||
| fi | fi | ||||||
|  |  | ||||||
| uname -a | uname -a | ||||||
|  | |||||||
| @ -1410,9 +1410,6 @@ func TestVersion(t *testing.T) { | |||||||
| } | } | ||||||
|  |  | ||||||
| func TestStaticcheck(t *testing.T) { | func TestStaticcheck(t *testing.T) { | ||||||
| 	if goversion.VersionAfterOrEqual(runtime.Version(), 1, 23) { |  | ||||||
| 		t.Skip("staticcheck does not support go1.23 yet") |  | ||||||
| 	} |  | ||||||
| 	_, err := exec.LookPath("staticcheck") | 	_, err := exec.LookPath("staticcheck") | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		t.Skip("staticcheck not installed") | 		t.Skip("staticcheck not installed") | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user