fix: set default env PATH
Some checks failed
build / build (push) Failing after 3m24s

This commit is contained in:
张泊明518370910136 2025-05-20 08:07:29 -04:00
parent 8a6c34f3e9
commit 01759efb7b
GPG Key ID: D47306D7062CDA9D
8 changed files with 40 additions and 14 deletions

View File

@ -44,7 +44,7 @@ InputFile = Union[LocalFile, MemoryFile, PreparedFile, Symlink]
class Cmd(BaseModel):
args: List[str] = []
env: List[str] = []
env: List[str] = ["PATH=/usr/bin:/bin:/usr/local/bin"]
stdin: Union[InputFile, StreamIn] = MemoryFile(content="")
stdout: Union[Collector, StreamOut] = Collector(name="stdout")
stderr: Union[Collector, StreamOut] = Collector(name="stderr")

View File

@ -18,7 +18,9 @@
"with": {
"default": {
"args": [],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},
@ -108,7 +110,9 @@
"args": [
"./tools/compile"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},
@ -195,7 +199,9 @@
"*.cpp",
"*.h"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},
@ -295,7 +301,9 @@
"h7/build",
"h7/ex2.cpp"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},
@ -421,7 +429,9 @@
"--quiet",
"h7/ex2.cpp"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},
@ -566,7 +576,9 @@
"--exclude=build",
"h7/ex2.cpp"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},
@ -663,7 +675,9 @@
"./h7/build/ex2-asan",
"-a"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},

View File

@ -26,7 +26,9 @@
"h7/build",
"h7/ex2.cpp"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},

View File

@ -26,7 +26,9 @@
"--quiet",
"h7/ex2.cpp"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},

View File

@ -25,7 +25,9 @@
"--exclude=build",
"h7/ex2.cpp"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},

View File

@ -21,7 +21,9 @@
"./h7/build/ex2-asan",
"-a"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},

View File

@ -24,7 +24,9 @@
"*.cpp",
"*.h"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},

View File

@ -24,7 +24,9 @@
"*.cpp",
"*.h"
],
"env": [],
"env": [
"PATH=/usr/bin:/bin:/usr/local/bin"
],
"stdin": {
"content": ""
},