ci: 加 -race、staticcheck、govulncheck、shellcheck 与真 PostgreSQL 集成测试门禁,release 复用 ci 门禁
This commit is contained in:
8 files changed
+130
-58
No files matched your search
@@ -505,7 +505,7 @@ func (o OffsiteConfig) validate() error {
|
||||
return fmt.Errorf("config: [offsite] bucket %q must be a bare bucket name; put a key prefix in prefix", o.Bucket)
|
||||
}
|
||||
if strings.Contains(o.Prefix, "..") {
|
||||
return fmt.Errorf("config: [offsite] prefix %q must not contain ..", o.Prefix)
|
||||
return fmt.Errorf("config: [offsite] prefix %q must not contain \"..\"", o.Prefix)
|
||||
}
|
||||
if o.DBKeep < 1 {
|
||||
return fmt.Errorf("config: [offsite] db_keep %d must be at least 1", o.DBKeep)
|
||||
|
||||
Reference in new issue
Block a user