Files
act_runner/pkg/lookpath/env.go
Christopher Homberger c192d65d18 exclude act pkg from vet
2026-02-23 23:33:02 +01:00

22 lines
363 B
Go

// Copyright 2026 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package lookpath
import "os"
type Env interface {
Getenv(name string) string
}
type defaultEnv struct {
}
func (*defaultEnv) Getenv(name string) string {
return os.Getenv(name)
}
func LookPath(file string) (string, error) {
return LookPath2(file, &defaultEnv{})
}