mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-04 06:22:25 -06:00 
			
		
		
		
	[chore] Bump go swagger (#2871)
* bump go swagger version * bump swagger version
This commit is contained in:
		
					parent
					
						
							
								3a369d834a
							
						
					
				
			
			
				commit
				
					
						fd8a724e77
					
				
			
		
					 251 changed files with 10841 additions and 11896 deletions
				
			
		
							
								
								
									
										3
									
								
								vendor/github.com/Masterminds/semver/v3/.golangci.yml
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/github.com/Masterminds/semver/v3/.golangci.yml
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -5,12 +5,9 @@ linters:
 | 
			
		|||
  disable-all: true
 | 
			
		||||
  enable:
 | 
			
		||||
    - misspell
 | 
			
		||||
    - structcheck
 | 
			
		||||
    - govet
 | 
			
		||||
    - staticcheck
 | 
			
		||||
    - deadcode
 | 
			
		||||
    - errcheck
 | 
			
		||||
    - varcheck
 | 
			
		||||
    - unparam
 | 
			
		||||
    - ineffassign
 | 
			
		||||
    - nakedret
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										17
									
								
								vendor/github.com/Masterminds/semver/v3/Makefile
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								vendor/github.com/Masterminds/semver/v3/Makefile
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,7 +1,5 @@
 | 
			
		|||
GOPATH=$(shell go env GOPATH)
 | 
			
		||||
GOLANGCI_LINT=$(GOPATH)/bin/golangci-lint
 | 
			
		||||
GOFUZZBUILD = $(GOPATH)/bin/go-fuzz-build
 | 
			
		||||
GOFUZZ = $(GOPATH)/bin/go-fuzz
 | 
			
		||||
 | 
			
		||||
.PHONY: lint
 | 
			
		||||
lint: $(GOLANGCI_LINT)
 | 
			
		||||
| 
						 | 
				
			
			@ -19,19 +17,14 @@ test-cover:
 | 
			
		|||
	GO111MODULE=on go test -cover .
 | 
			
		||||
 | 
			
		||||
.PHONY: fuzz
 | 
			
		||||
fuzz: $(GOFUZZBUILD) $(GOFUZZ)
 | 
			
		||||
	@echo "==> Fuzz testing"
 | 
			
		||||
	$(GOFUZZBUILD)
 | 
			
		||||
	$(GOFUZZ) -workdir=_fuzz
 | 
			
		||||
fuzz:
 | 
			
		||||
	@echo "==> Running Fuzz Tests"
 | 
			
		||||
	go test -fuzz=FuzzNewVersion -fuzztime=15s .
 | 
			
		||||
	go test -fuzz=FuzzStrictNewVersion -fuzztime=15s .
 | 
			
		||||
	go test -fuzz=FuzzNewConstraint -fuzztime=15s .
 | 
			
		||||
 | 
			
		||||
$(GOLANGCI_LINT):
 | 
			
		||||
	# Install golangci-lint. The configuration for it is in the .golangci.yml
 | 
			
		||||
	# file in the root of the repository
 | 
			
		||||
	echo ${GOPATH}
 | 
			
		||||
	curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.17.1
 | 
			
		||||
 | 
			
		||||
$(GOFUZZBUILD):
 | 
			
		||||
	cd / && go get -u github.com/dvyukov/go-fuzz/go-fuzz-build
 | 
			
		||||
 | 
			
		||||
$(GOFUZZ):
 | 
			
		||||
	cd / && go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-dep
 | 
			
		||||
							
								
								
									
										22
									
								
								vendor/github.com/Masterminds/semver/v3/README.md
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								vendor/github.com/Masterminds/semver/v3/README.md
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -18,18 +18,20 @@ If you are looking for a command line tool for version comparisons please see
 | 
			
		|||
 | 
			
		||||
## Package Versions
 | 
			
		||||
 | 
			
		||||
Note, import `github.com/github.com/Masterminds/semver/v3` to use the latest version.
 | 
			
		||||
 | 
			
		||||
There are three major versions fo the `semver` package.
 | 
			
		||||
 | 
			
		||||
* 3.x.x is the new stable and active version. This version is focused on constraint
 | 
			
		||||
* 3.x.x is the stable and active version. This version is focused on constraint
 | 
			
		||||
  compatibility for range handling in other tools from other languages. It has
 | 
			
		||||
  a similar API to the v1 releases. The development of this version is on the master
 | 
			
		||||
  branch. The documentation for this version is below.
 | 
			
		||||
* 2.x was developed primarily for [dep](https://github.com/golang/dep). There are
 | 
			
		||||
  no tagged releases and the development was performed by [@sdboyer](https://github.com/sdboyer).
 | 
			
		||||
  There are API breaking changes from v1. This version lives on the [2.x branch](https://github.com/Masterminds/semver/tree/2.x).
 | 
			
		||||
* 1.x.x is the most widely used version with numerous tagged releases. This is the
 | 
			
		||||
  previous stable and is still maintained for bug fixes. The development, to fix
 | 
			
		||||
  bugs, occurs on the release-1 branch. You can read the documentation [here](https://github.com/Masterminds/semver/blob/release-1/README.md).
 | 
			
		||||
* 1.x.x is the original release. It is no longer maintained. You should use the
 | 
			
		||||
  v3 release instead. You can read the documentation for the 1.x.x release
 | 
			
		||||
  [here](https://github.com/Masterminds/semver/blob/release-1/README.md).
 | 
			
		||||
 | 
			
		||||
## Parsing Semantic Versions
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -242,3 +244,15 @@ for _, m := range msgs {
 | 
			
		|||
 | 
			
		||||
If you find an issue or want to contribute please file an [issue](https://github.com/Masterminds/semver/issues)
 | 
			
		||||
or [create a pull request](https://github.com/Masterminds/semver/pulls).
 | 
			
		||||
 | 
			
		||||
## Security
 | 
			
		||||
 | 
			
		||||
Security is an important consideration for this project. The project currently
 | 
			
		||||
uses the following tools to help discover security issues:
 | 
			
		||||
 | 
			
		||||
* [CodeQL](https://github.com/Masterminds/semver)
 | 
			
		||||
* [gosec](https://github.com/securego/gosec)
 | 
			
		||||
* Daily Fuzz testing
 | 
			
		||||
 | 
			
		||||
If you believe you have found a security vulnerability you can privately disclose
 | 
			
		||||
it through the [GitHub security page](https://github.com/Masterminds/semver/security).
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										19
									
								
								vendor/github.com/Masterminds/semver/v3/SECURITY.md
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								vendor/github.com/Masterminds/semver/v3/SECURITY.md
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,19 @@
 | 
			
		|||
# Security Policy
 | 
			
		||||
 | 
			
		||||
## Supported Versions
 | 
			
		||||
 | 
			
		||||
The following versions of semver are currently supported:
 | 
			
		||||
 | 
			
		||||
| Version | Supported          |
 | 
			
		||||
| ------- | ------------------ |
 | 
			
		||||
| 3.x     | :white_check_mark: |
 | 
			
		||||
| 2.x     | :x:                |
 | 
			
		||||
| 1.x     | :x:                |
 | 
			
		||||
 | 
			
		||||
Fixes are only released for the latest minor version in the form of a patch release.
 | 
			
		||||
 | 
			
		||||
## Reporting a Vulnerability
 | 
			
		||||
 | 
			
		||||
You can privately disclose a vulnerability through GitHubs
 | 
			
		||||
[private vulnerability reporting](https://github.com/Masterminds/semver/security/advisories)
 | 
			
		||||
mechanism.
 | 
			
		||||
							
								
								
									
										2
									
								
								vendor/github.com/Masterminds/semver/v3/constraints.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/Masterminds/semver/v3/constraints.go
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -586,7 +586,7 @@ func rewriteRange(i string) string {
 | 
			
		|||
	}
 | 
			
		||||
	o := i
 | 
			
		||||
	for _, v := range m {
 | 
			
		||||
		t := fmt.Sprintf(">= %s, <= %s", v[1], v[11])
 | 
			
		||||
		t := fmt.Sprintf(">= %s, <= %s ", v[1], v[11])
 | 
			
		||||
		o = strings.Replace(o, v[0], t, 1)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										22
									
								
								vendor/github.com/Masterminds/semver/v3/fuzz.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								vendor/github.com/Masterminds/semver/v3/fuzz.go
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,22 +0,0 @@
 | 
			
		|||
// +build gofuzz
 | 
			
		||||
 | 
			
		||||
package semver
 | 
			
		||||
 | 
			
		||||
func Fuzz(data []byte) int {
 | 
			
		||||
	d := string(data)
 | 
			
		||||
 | 
			
		||||
	// Test NewVersion
 | 
			
		||||
	_, _ = NewVersion(d)
 | 
			
		||||
 | 
			
		||||
	// Test StrictNewVersion
 | 
			
		||||
	_, _ = StrictNewVersion(d)
 | 
			
		||||
 | 
			
		||||
	// Test NewConstraint
 | 
			
		||||
	_, _ = NewConstraint(d)
 | 
			
		||||
 | 
			
		||||
	// The return value should be 0 normally, 1 if the priority in future tests
 | 
			
		||||
	// should be increased, and -1 if future tests should skip passing in that
 | 
			
		||||
	// data. We do not have a reason to change priority so 0 is always returned.
 | 
			
		||||
	// There are example tests that do this.
 | 
			
		||||
	return 0
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue