Update Go and vendor dependencies

This commit is contained in:
dwrz
2026-10-09 15:30:45 +00:00
parent c1a64be31c
commit 550f257760
296 changed files with 308687 additions and 8460 deletions
+7 -7
View File
@@ -386,7 +386,7 @@ type Runner struct {
// Config that gets merged with per-package configs
cfg config.Config
cache *cache.Cache
cache cache.Cache
semaphore tsync.Semaphore
}
@@ -395,11 +395,11 @@ type subrunner struct {
analyzers []*analysis.Analyzer
factAnalyzers []*analysis.Analyzer
analyzerNames string
cache *cache.Cache
cache cache.Cache
}
// New returns a new Runner.
func New(cfg config.Config, c *cache.Cache) (*Runner, error) {
func New(cfg config.Config, c cache.Cache) (*Runner, error) {
return &Runner{
cfg: cfg,
cache: c,
@@ -499,10 +499,10 @@ func newAnalyzerAction(an *analysis.Analyzer, cache map[*analysis.Analyzer]*anal
return a
}
func getCachedFiles(cache *cache.Cache, ids []cache.ActionID, out []*string) error {
func getCachedFiles(c cache.Cache, ids []cache.ActionID, out []*string) error {
for i, id := range ids {
var err error
*out[i], _, err = cache.GetFile(id)
*out[i], _, err = cache.GetFile(c, id)
if err != nil {
return err
}
@@ -521,7 +521,7 @@ func (r *subrunner) do(act action) error {
// compute hash of action
a.cfg = a.Package.Config.Merge(r.cfg)
h := r.cache.NewHash("staticcheck " + a.Package.PkgPath)
h := cache.NewHash("staticcheck " + a.Package.PkgPath)
// Note that we do not filter the list of analyzers by the
// package's configuration. We don't allow configuration to
@@ -1185,7 +1185,7 @@ func (r *Runner) Run(cfg *packages.Config, analyzers []*analysis.Analyzer, patte
registerGobTypes(analyzers)
r.Stats.setState(StateLoadPackageGraph)
lpkgs, err := loader.Graph(r.cache, cfg, patterns...)
lpkgs, err := loader.Graph(cfg, patterns...)
if err != nil {
return nil, err
}