Skip to content

Conversation

@Sayan-
Copy link
Contributor

@Sayan- Sayan- commented Jul 7, 2025

build-server.sh was assuming a bit too much about a users local env. Instead we'll just run it in docker; we're still preferring this over multi-context builds due to limitations in kraft pkg

Testing

  • build + run docker locally
  • build unikernel

@Sayan- Sayan- requested a review from juecd July 7, 2025 19:28
cursor[bot]

This comment was marked as outdated.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Go Version Extraction Fails in Docker Tagging

The GO_REQUIRED variable, extracted from go.mod, can be empty if the grep regex ^go [0-9]+\.[0-9]+ fails to match Go versions with patch numbers (e.g., "go 1.21.5"), or if the go.mod file is missing/malformed. This results in an invalid Docker image tag golang:, causing the docker run command to fail with a cryptic error. The regex should be ^go [0-9]+\.[0-9]+(\.[0-9]+)?, and the script should handle extraction failures.

shared/build-server.sh#L27-L38

https://github.com/onkernel/kernel-images/blob/de8be786ced9142f829d4066b21308be9cf5caea/shared/build-server.sh#L27-L38

Fix in CursorFix in Web


Was this report helpful? Give feedback by reacting with 👍 or 👎

@Sayan- Sayan- merged commit 02502b2 into main Jul 7, 2025
2 checks passed
@Sayan- Sayan- deleted the sayan/containerize-server-build branch July 7, 2025 23:02
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

Successfully merging this pull request may close these issues.

3 participants