mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-26 10:13:34 +00:00
chore: update Go to v1.27 (#39068)
Only made some necessary changes:
1. remove `GOEXPERIMENT`, only use jsonv2
1. `make fmt`
* `SigningKey` and `Signature` were affected due to some bugs in the
toolchain, so rewrote them
1. remove or fix fragile magic numbers and strings
* the outputs of image/gzip/zlib packages are different
1. update "nolint" comments for the changed lint behaviors
1. add `tls.MLKEM1024`
This commit is contained in:
@@ -17,4 +17,4 @@ type sourceInterface interface {
|
||||
auth_model.Config
|
||||
}
|
||||
|
||||
var _ (sourceInterface) = &db.Source{}
|
||||
var _ sourceInterface = &db.Source{}
|
||||
|
||||
@@ -22,4 +22,4 @@ type sourceInterface interface {
|
||||
auth_model.UseTLSer
|
||||
}
|
||||
|
||||
var _ (sourceInterface) = &ldap.Source{}
|
||||
var _ sourceInterface = &ldap.Source{}
|
||||
|
||||
@@ -18,4 +18,4 @@ type sourceInterface interface {
|
||||
auth.PasswordAuthenticator
|
||||
}
|
||||
|
||||
var _ (sourceInterface) = &oauth2.Source{}
|
||||
var _ sourceInterface = &oauth2.Source{}
|
||||
|
||||
@@ -94,4 +94,4 @@ func (s *sizeWriter) Write(data []byte) (int, error) {
|
||||
return len(data), nil
|
||||
}
|
||||
|
||||
var _ (sessions.Store) = &SessionsStore{}
|
||||
var _ sessions.Store = &SessionsStore{}
|
||||
|
||||
@@ -17,4 +17,4 @@ type sourceInterface interface {
|
||||
auth_model.Config
|
||||
}
|
||||
|
||||
var _ (sourceInterface) = &pam.Source{}
|
||||
var _ sourceInterface = &pam.Source{}
|
||||
|
||||
@@ -20,4 +20,4 @@ type sourceInterface interface {
|
||||
auth_model.UseTLSer
|
||||
}
|
||||
|
||||
var _ (sourceInterface) = &smtp.Source{}
|
||||
var _ sourceInterface = &smtp.Source{}
|
||||
|
||||
@@ -15,4 +15,4 @@ type sourceInterface interface {
|
||||
auth.Config
|
||||
}
|
||||
|
||||
var _ (sourceInterface) = &sspi.Source{}
|
||||
var _ sourceInterface = &sspi.Source{}
|
||||
|
||||
@@ -169,7 +169,7 @@ func ToBranchProtection(ctx context.Context, bp *git_model.ProtectedBranch, repo
|
||||
}
|
||||
|
||||
return &api.BranchProtection{
|
||||
BranchName: branchName,
|
||||
BranchName: branchName, //nolint:staticcheck // deprecated but useful to API response
|
||||
RuleName: bp.RuleName,
|
||||
Priority: bp.Priority,
|
||||
EnablePush: bp.CanPush,
|
||||
|
||||
@@ -130,9 +130,9 @@ func toProject(ctx context.Context, p *project_model.Project, doer *user_model.U
|
||||
Description: p.Description,
|
||||
OwnerID: p.OwnerID,
|
||||
RepoID: p.RepoID,
|
||||
CreatorID: p.CreatorID,
|
||||
CreatorID: p.CreatorID, //nolint:staticcheck // deprecated but useful to API response
|
||||
State: state,
|
||||
IsClosed: p.IsClosed,
|
||||
IsClosed: p.IsClosed, //nolint:staticcheck // deprecated but useful to API response
|
||||
TemplateType: projectTemplateTypeToString(p.TemplateType),
|
||||
CardType: projectCardTypeToString(p.CardType),
|
||||
Type: projectTypeToString(p.Type),
|
||||
|
||||
Reference in New Issue
Block a user