mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 15:42:25 -05:00 
			
		
		
		
	[chore] bump dependencies (#4406)
- codeberg.org/gruf/go-ffmpreg: v0.6.9 -> v0.6.10
- github.com/ncruces/go-sqlite3: v0.27.1 -> v0.28.0
- github.com/stretchr/testify: v1.10.0 -> v1.11.1
- github.com/tdewolff/minify/v2 v2.23.11 -> v2.24.2
- go.opentelemetry.io/otel{,/*}: v1.37.0 -> v1.38.0
- go.opentelemetry.io/contrib/*: v0.62.0 -> v0.63.0
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4406
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
	
	
This commit is contained in:
		
					parent
					
						
							
								5a54e7156b
							
						
					
				
			
			
				commit
				
					
						78defcd916
					
				
			
		
					 274 changed files with 9213 additions and 2368 deletions
				
			
		
							
								
								
									
										36
									
								
								vendor/github.com/spf13/pflag/flag.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										36
									
								
								vendor/github.com/spf13/pflag/flag.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -137,12 +137,17 @@ const ( | |||
| 	PanicOnError | ||||
| ) | ||||
| 
 | ||||
| // ParseErrorsWhitelist defines the parsing errors that can be ignored | ||||
| type ParseErrorsWhitelist struct { | ||||
| // ParseErrorsAllowlist defines the parsing errors that can be ignored | ||||
| type ParseErrorsAllowlist struct { | ||||
| 	// UnknownFlags will ignore unknown flags errors and continue parsing rest of the flags | ||||
| 	UnknownFlags bool | ||||
| } | ||||
| 
 | ||||
| // ParseErrorsWhitelist defines the parsing errors that can be ignored. | ||||
| // | ||||
| // Deprecated: use [ParseErrorsAllowlist] instead. This type will be removed in a future release. | ||||
| type ParseErrorsWhitelist = ParseErrorsAllowlist | ||||
| 
 | ||||
| // NormalizedName is a flag name that has been normalized according to rules | ||||
| // for the FlagSet (e.g. making '-' and '_' equivalent). | ||||
| type NormalizedName string | ||||
|  | @ -158,8 +163,13 @@ type FlagSet struct { | |||
| 	// help/usage messages. | ||||
| 	SortFlags bool | ||||
| 
 | ||||
| 	// ParseErrorsWhitelist is used to configure a whitelist of errors | ||||
| 	ParseErrorsWhitelist ParseErrorsWhitelist | ||||
| 	// ParseErrorsAllowlist is used to configure an allowlist of errors | ||||
| 	ParseErrorsAllowlist ParseErrorsAllowlist | ||||
| 
 | ||||
| 	// ParseErrorsAllowlist is used to configure an allowlist of errors. | ||||
| 	// | ||||
| 	// Deprecated: use [FlagSet.ParseErrorsAllowlist] instead. This field will be removed in a future release. | ||||
| 	ParseErrorsWhitelist ParseErrorsAllowlist | ||||
| 
 | ||||
| 	name              string | ||||
| 	parsed            bool | ||||
|  | @ -928,7 +938,6 @@ func VarP(value Value, name, shorthand, usage string) { | |||
| // returns the error. | ||||
| func (f *FlagSet) fail(err error) error { | ||||
| 	if f.errorHandling != ContinueOnError { | ||||
| 		fmt.Fprintln(f.Output(), err) | ||||
| 		f.usage() | ||||
| 	} | ||||
| 	return err | ||||
|  | @ -986,6 +995,8 @@ func (f *FlagSet) parseLongArg(s string, args []string, fn parseFunc) (a []strin | |||
| 			f.usage() | ||||
| 			return a, ErrHelp | ||||
| 		case f.ParseErrorsWhitelist.UnknownFlags: | ||||
| 			fallthrough | ||||
| 		case f.ParseErrorsAllowlist.UnknownFlags: | ||||
| 			// --unknown=unknownval arg ... | ||||
| 			// we do not want to lose arg in this case | ||||
| 			if len(split) >= 2 { | ||||
|  | @ -1044,6 +1055,8 @@ func (f *FlagSet) parseSingleShortArg(shorthands string, args []string, fn parse | |||
| 			err = ErrHelp | ||||
| 			return | ||||
| 		case f.ParseErrorsWhitelist.UnknownFlags: | ||||
| 			fallthrough | ||||
| 		case f.ParseErrorsAllowlist.UnknownFlags: | ||||
| 			// '-f=arg arg ...' | ||||
| 			// we do not want to lose arg in this case | ||||
| 			if len(shorthands) > 2 && shorthands[1] == '=' { | ||||
|  | @ -1158,12 +1171,12 @@ func (f *FlagSet) Parse(arguments []string) error { | |||
| 	} | ||||
| 	f.parsed = true | ||||
| 
 | ||||
| 	f.args = make([]string, 0, len(arguments)) | ||||
| 
 | ||||
| 	if len(arguments) == 0 { | ||||
| 		return nil | ||||
| 	} | ||||
| 
 | ||||
| 	f.args = make([]string, 0, len(arguments)) | ||||
| 
 | ||||
| 	set := func(flag *Flag, value string) error { | ||||
| 		return f.Set(flag.Name, value) | ||||
| 	} | ||||
|  | @ -1174,7 +1187,10 @@ func (f *FlagSet) Parse(arguments []string) error { | |||
| 		case ContinueOnError: | ||||
| 			return err | ||||
| 		case ExitOnError: | ||||
| 			fmt.Println(err) | ||||
| 			if err == ErrHelp { | ||||
| 				os.Exit(0) | ||||
| 			} | ||||
| 			fmt.Fprintln(f.Output(), err) | ||||
| 			os.Exit(2) | ||||
| 		case PanicOnError: | ||||
| 			panic(err) | ||||
|  | @ -1200,6 +1216,10 @@ func (f *FlagSet) ParseAll(arguments []string, fn func(flag *Flag, value string) | |||
| 		case ContinueOnError: | ||||
| 			return err | ||||
| 		case ExitOnError: | ||||
| 			if err == ErrHelp { | ||||
| 				os.Exit(0) | ||||
| 			} | ||||
| 			fmt.Fprintln(f.Output(), err) | ||||
| 			os.Exit(2) | ||||
| 		case PanicOnError: | ||||
| 			panic(err) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue