mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore]: Bump github.com/gin-contrib/sessions from 0.0.5 to 1.0.0 (#2782)
This commit is contained in:
20
vendor/github.com/gorilla/context/.editorconfig
generated
vendored
Normal file
20
vendor/github.com/gorilla/context/.editorconfig
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
; https://editorconfig.org/
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
insert_final_newline = true
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[{Makefile,go.mod,go.sum,*.go,.gitmodules}]
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
|
||||
[*.md]
|
||||
indent_size = 4
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
eclint_indent_style = unset
|
1
vendor/github.com/gorilla/context/.gitignore
generated
vendored
Normal file
1
vendor/github.com/gorilla/context/.gitignore
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
coverage.coverprofile
|
12
vendor/github.com/gorilla/context/.golangci.yml
generated
vendored
Normal file
12
vendor/github.com/gorilla/context/.golangci.yml
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
linters:
|
||||
enable:
|
||||
- errcheck
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- staticcheck
|
||||
- unused
|
||||
- contextcheck
|
||||
- goconst
|
||||
- gofmt
|
||||
- misspell
|
19
vendor/github.com/gorilla/context/.travis.yml
generated
vendored
19
vendor/github.com/gorilla/context/.travis.yml
generated
vendored
@ -1,19 +0,0 @@
|
||||
language: go
|
||||
sudo: false
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- go: 1.3
|
||||
- go: 1.4
|
||||
- go: 1.5
|
||||
- go: 1.6
|
||||
- go: 1.7
|
||||
- go: tip
|
||||
allow_failures:
|
||||
- go: tip
|
||||
|
||||
script:
|
||||
- go get -t -v ./...
|
||||
- diff -u <(echo -n) <(gofmt -d .)
|
||||
- go vet $(go list ./... | grep -v /vendor/)
|
||||
- go test -v -race ./...
|
2
vendor/github.com/gorilla/context/LICENSE
generated
vendored
2
vendor/github.com/gorilla/context/LICENSE
generated
vendored
@ -1,4 +1,4 @@
|
||||
Copyright (c) 2012 Rodrigo Moraes. All rights reserved.
|
||||
Copyright (c) 2012-2023 The Gorilla web toolkit authors. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
|
52
vendor/github.com/gorilla/context/Makefile
generated
vendored
Normal file
52
vendor/github.com/gorilla/context/Makefile
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
GO_LINT=$(shell which golangci-lint 2> /dev/null || echo '')
|
||||
GO_LINT_URI=github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||
|
||||
GO_SEC=$(shell which gosec 2> /dev/null || echo '')
|
||||
GO_SEC_URI=github.com/securego/gosec/v2/cmd/gosec@latest
|
||||
|
||||
GO_VULNCHECK=$(shell which govulncheck 2> /dev/null || echo '')
|
||||
GO_VULNCHECK_URI=golang.org/x/vuln/cmd/govulncheck@latest
|
||||
|
||||
.PHONY: golangci-lint
|
||||
golangci-lint: ## Run golangci-lint. Example: make golangci-lint
|
||||
$(if $(GO_LINT), ,go install $(GO_LINT_URI))
|
||||
@echo "##### Running golangci-lint #####"
|
||||
golangci-lint run -v
|
||||
|
||||
.PHONY: verify
|
||||
verify: ## Run all verifications [golangci-lint]. Example: make verify
|
||||
@echo "##### Running verifications #####"
|
||||
$(MAKE) golangci-lint
|
||||
|
||||
.PHONY: gosec
|
||||
gosec: ## Run gosec. Example: make gosec
|
||||
$(if $(GO_SEC), ,go install $(GO_SEC_URI))
|
||||
@echo "##### Running gosec #####"
|
||||
gosec ./...
|
||||
|
||||
.PHONY: govulncheck
|
||||
govulncheck: ## Run govulncheck. Example: make govulncheck
|
||||
$(if $(GO_VULNCHECK), ,go install $(GO_VULNCHECK_URI))
|
||||
@echo "##### Running govulncheck #####"
|
||||
govulncheck ./...
|
||||
|
||||
.PHONY: security
|
||||
security: ## Run all security checks [gosec, govulncheck]. Example: make security
|
||||
@echo "##### Running security checks #####"
|
||||
$(MAKE) gosec
|
||||
$(MAKE) govulncheck
|
||||
|
||||
.PHONY: test-unit
|
||||
test-unit: ## Run unit tests. Example: make test-unit
|
||||
@echo "##### Running unit tests #####"
|
||||
go test -race -cover -coverprofile=coverage.coverprofile -covermode=atomic -v ./...
|
||||
|
||||
.PHONY: test
|
||||
test: ## Run all tests [test-unit]. Example: make test
|
||||
@echo "##### Running tests #####"
|
||||
$(MAKE) test-unit
|
||||
|
||||
.PHONY: help
|
||||
help: ## Print this help. Example: make help
|
||||
@echo "##### Printing help #####"
|
||||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
28
vendor/github.com/gorilla/context/README.md
generated
vendored
28
vendor/github.com/gorilla/context/README.md
generated
vendored
@ -1,10 +1,26 @@
|
||||
context
|
||||
=======
|
||||
[](https://travis-ci.org/gorilla/context)
|
||||
# gorilla/context
|
||||
|
||||
[](https://img.shields.io/github/license/gorilla/.github)
|
||||

|
||||
[](https://codecov.io/github/gorilla/context)
|
||||
[](https://godoc.org/github.com/gorilla/context)
|
||||
[](https://sourcegraph.com/github.com/gorilla/context?badge)
|
||||
[](https://bestpractices.coreinfrastructure.org/projects/7656)
|
||||
|
||||

|
||||
|
||||
> ⚠⚠⚠ **Note** ⚠⚠⚠ gorilla/context, having been born well before `context.Context` existed, does not play well
|
||||
> with the shallow copying of the request that [`http.Request.WithContext`](https://golang.org/pkg/net/http/#Request.WithContext) (added to net/http Go 1.7 onwards) performs.
|
||||
>
|
||||
> Using gorilla/context may lead to memory leaks under those conditions, as the pointers to each `http.Request` become "islanded" and will not be cleaned up when the response is sent.
|
||||
>
|
||||
> You should use the `http.Request.Context()` feature in Go 1.7.
|
||||
|
||||
gorilla/context is a general purpose registry for global request variables.
|
||||
|
||||
> Note: gorilla/context, having been born well before `context.Context` existed, does not play well
|
||||
> with the shallow copying of the request that [`http.Request.WithContext`](https://golang.org/pkg/net/http/#Request.WithContext) (added to net/http Go 1.7 onwards) performs. You should either use *just* gorilla/context, or moving forward, the new `http.Request.Context()`.
|
||||
* It stores a `map[*http.Request]map[interface{}]interface{}` as a global singleton, and thus tracks variables by their HTTP request.
|
||||
|
||||
Read the full documentation here: http://www.gorillatoolkit.org/pkg/context
|
||||
|
||||
### License
|
||||
|
||||
See the LICENSE file for details.
|
||||
|
4
vendor/github.com/gorilla/context/context.go
generated
vendored
4
vendor/github.com/gorilla/context/context.go
generated
vendored
@ -1,7 +1,3 @@
|
||||
// Copyright 2012 The Gorilla Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package context
|
||||
|
||||
import (
|
||||
|
Reference in New Issue
Block a user