mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-21 05:06:43 +00:00
- Update github.com/sirupsen/logrus v1.9.0 -> v1.9.3 in test/go.mod to fix GHSA-4f99-4q7p-p3gh (High) - Update github.com/prometheus/prometheus v0.35.0 -> v0.311.3 to fix GHSA-vffh-x6r8-xx99 (Medium) - Run go mod tidy and go mod vendor to update vendor directory
34 lines
1.0 KiB
Go
34 lines
1.0 KiB
Go
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package swag
|
|
|
|
import "github.com/go-openapi/swag/fileutils"
|
|
|
|
// GOPATHKey represents the env key for gopath
|
|
//
|
|
// Deprecated: use [fileutils.GOPATHKey] instead.
|
|
const GOPATHKey = fileutils.GOPATHKey
|
|
|
|
// File represents an uploaded file.
|
|
//
|
|
// Deprecated: use [fileutils.File] instead.
|
|
type File = fileutils.File
|
|
|
|
// FindInSearchPath finds a package in a provided lists of paths.
|
|
//
|
|
// Deprecated: use [fileutils.FindInSearchPath] instead.
|
|
func FindInSearchPath(searchPath, pkg string) string {
|
|
return fileutils.FindInSearchPath(searchPath, pkg)
|
|
}
|
|
|
|
// FindInGoSearchPath finds a package in the $GOPATH:$GOROOT
|
|
//
|
|
// Deprecated: use [fileutils.FindInGoSearchPath] instead.
|
|
func FindInGoSearchPath(pkg string) string { return fileutils.FindInGoSearchPath(pkg) }
|
|
|
|
// FullGoSearchPath gets the search paths for finding packages
|
|
//
|
|
// Deprecated: use [fileutils.FullGoSearchPath] instead.
|
|
func FullGoSearchPath() string { return fileutils.FullGoSearchPath() }
|