mirror of
https://gitea.com/gitea/act
synced 2024-11-27 07:08:57 +00:00
9884da0122
* fix: environment handling windows (host mode) * fixup * fixup * add more tests * fixup * fix setenv * fixes * [skip ci] Apply suggestions from code review Co-authored-by: Jason Song <i@wolfogre.com> * Update side effects --------- Co-authored-by: Jason Song <i@wolfogre.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
16 lines
383 B
Go
16 lines
383 B
Go
package container
|
|
|
|
import "context"
|
|
|
|
type ExecutionsEnvironment interface {
|
|
Container
|
|
ToContainerPath(string) string
|
|
GetActPath() string
|
|
GetPathVariableName() string
|
|
DefaultPathVariable() string
|
|
JoinPathVariable(...string) string
|
|
GetRunnerContext(ctx context.Context) map[string]interface{}
|
|
// On windows PATH and Path are the same key
|
|
IsEnvironmentCaseInsensitive() bool
|
|
}
|