benisenstein
PROOP
a year ago
My pet project is a single Go function, in which I callcmd := exec.Command("git", "clone", "MY_REPO")
and do some work in the file system.
Current railway.json file has included git:
{ "$schema": "https://railway.app/railway.schema.json", "build": { "nixpacksPlan": { "phases": { "setup": { "nixPkgs": ["...","git"] } } } }, "deploy": { "cronSchedule": "*/5 * * * *" } }
However the logs in the service show the following:
"exec: "git": executable file not found in $PATH"
Would appreciate some insight, thank you!
Ben
9 Replies
a year ago
set CGO_ENABLED=1
a year ago
yep, service variable
a year ago
did you try this suggestion first?
a year ago
!s
Status changed to Solved brody • about 1 year ago