Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go doesn't run correctly #3

Open
Squwid opened this issue May 5, 2024 · 0 comments
Open

Go doesn't run correctly #3

Squwid opened this issue May 5, 2024 · 0 comments

Comments

@Squwid
Copy link
Owner

Squwid commented May 5, 2024

Trying to run the golang:1.22.2-alpine3.19 image does not work correctly

curl --request POST \
  --url https://compiler.byte.golf/compile \
  --header 'Content-Type: application/json' \
  --data '{
  "image": "golang:1.22.2-alpine3.19",
  "extension": "go",
  "cmd": "go run",
  "script": "package main\r\n\r\nimport \"fmt\"\r\n\r\nfunc main() {\r\n    fmt.Println(\"Hello, world!\")\r\n}",
  "count": 1
}'

The output is as follows:

[
	{
		"stdout": "",
		"stderr": "",
		"duration_ms": 9876,
		"timed_out": true
	}
]

I assume this is likely due to Go modules and having some weirdness when running the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant