mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 19:02:24 -05:00 
			
		
		
		
	[chore] Update Go version to 1.18 (#444)
* linting with new golangci-lint version * update go to 1.18 * bump versions in drone.yml * use new runtime/debug package for version info * remove Commit build flag from goreleaser * remove mock commit + version from build script * go fmt * add dummy version env flag to test container * install git in golang container for testing * only set versionString if Version is defined
This commit is contained in:
		
					parent
					
						
							
								906981a718
							
						
					
				
			
			
				commit
				
					
						03d7c75ebf
					
				
			
		
					 16 changed files with 87 additions and 246 deletions
				
			
		|  | @ -59,5 +59,10 @@ func processValidationError(err error) error { | |||
| 		panic(ive) | ||||
| 	} | ||||
| 
 | ||||
| 	return err.(validator.ValidationErrors) | ||||
| 	valErr, ok := err.(validator.ValidationErrors) | ||||
| 	if !ok { | ||||
| 		panic("*validator.InvalidValidationError could not be coerced to validator.ValidationErrors") | ||||
| 	} | ||||
| 
 | ||||
| 	return valErr | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue