mirror of
https://github.com/luxfi/kms.git
synced 2026-11-03 08:42:32 +00:00
Squashes all pre-rewrite history into a single root commit. Previous tree: - 14506 commits including upstream Infisical fork history - Multiple merge chains carrying pre-purge content Force-rewrite per disk-space reclamation discipline. GHCR images (1.9.9, 1.9.11) remain immutable; their git lineage is no longer materialized.
24 lines
788 B
Go
24 lines
788 B
Go
// Copyright 2020 The Go 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 packagesinternal exposes internal-only fields from go/packages.
|
|
package packagesinternal
|
|
|
|
import "fmt"
|
|
|
|
var GetDepsErrors = func(p any) []*PackageError { return nil }
|
|
|
|
type PackageError struct {
|
|
ImportStack []string // shortest path from package named on command line to this one
|
|
Pos string // position of error (if present, file:line:col)
|
|
Err string // the error itself
|
|
}
|
|
|
|
func (err PackageError) String() string {
|
|
return fmt.Sprintf("%s: %s (import stack: %s)", err.Pos, err.Err, err.ImportStack)
|
|
}
|
|
|
|
var TypecheckCgo int
|
|
var DepsErrors int // must be set as a LoadMode to call GetDepsErrors
|