-
Notifications
You must be signed in to change notification settings - Fork 5
build image on ubuntu with docker #28
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
build image on ubuntu with docker #28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit build: use 'go 1.23.0' in go.sum
mentioned go.sum but the change itself is made inside go.mod.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering why it didn't fail with our recent PRs. AFAICT, the runner is already on 24.04. Is that due to some major docker version upgrade these days? If so, can you please paste the error (just out of curiosity)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to reproduce this (as error), but now I only just get it as warn:
go: download go1.23 for linux/amd64: toolchain not available
Originally, it happened on a newly installed ubuntu 24.04 vm, but afterwards I upgrade the vm so maybe it fixed the problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to reproduce this (as error), but now I only just get it as warn:
go: download go1.23 for linux/amd64: toolchain not available
Ah..I think I know why.
Go Toolchains where introduced with 1.21 and they follow a particular naming format. Go toolchain names has some details.
Ok, in that case I think it is wise to mention 1.23.0
to get rid of the warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still, I don't know why is was an error on a newly installed ubuntu vm, but just a warn now. Sigh...
I'm good to go with the change once the commit message is fixed. |
When running 'docker build' over ubuntu 24.04 (docker version 27.5.1) it fails to build code due to missing release-number in version string of 'go.mod'. Add explicit zero. Signed-off-by: Shachar Sharon <[email protected]>
When building with docker over ubuntu 22.04 it emits warning: require 'AS' keyword instead of lowercase 'as'. Signed-off-by: Shachar Sharon <[email protected]>
33a638b
to
77fb4d4
Compare
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks.
Fixes for ubuntu22.04, docker 27.5.1