We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8e513f6 + 6ed87de commit 77530eaCopy full SHA for 77530ea
entrypoint/main.go
@@ -189,7 +189,9 @@ func main() {
189
os.Setenv("BOOTSTRAP_IDS", bootstrap_IDs)
190
}
191
192
+ path := "/app/build/avalanchego"
193
args := []string{
194
+ path, // argv[0] must be the program name
195
"--http-host", os.Getenv("HTTP_HOST"),
196
"--http-port", os.Getenv("HTTP_PORT"),
197
"--staking-port", os.Getenv("STAKING_PORT"),
@@ -209,7 +211,6 @@ func main() {
209
211
args = append(args, strings.Fields(extra)...)
210
212
213
fmt.Fprintln(os.Stderr, args)
- path := "/app/build/avalanchego"
214
215
if _, err := os.Stat(path); errors.Is(err, os.ErrNotExist) {
216
fmt.Fprintln(os.Stderr, "file does not exist")
0 commit comments