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

Update Candid dockerfile #194

Merged
merged 1 commit into from
Aug 29, 2023
Merged

Update Candid dockerfile #194

merged 1 commit into from
Aug 29, 2023

Conversation

kian99
Copy link
Contributor

@kian99 kian99 commented Aug 29, 2023

Description

Update the Candid Dockerfile to remove GVM (Go Version Manager). Also bumps the go version to 1.20

Engineering checklist

Check only items that apply

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests
  • Independent change*

@kian99 kian99 requested a review from alesstimec August 29, 2023 07:52
@@ -4,6 +4,7 @@

GIT_COMMIT := $(shell git rev-parse --verify HEAD)
GIT_VERSION := $(shell git describe --dirty)
GO_VERSION := $(shell go list -f {{.GoVersion}} -m)
Copy link

Choose a reason for hiding this comment

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

this means we are using the locally installed go version as the version to use in the docker container.

we then need to make sure the building host has the appropriate go version.

is it possible we set the golang version here directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This actually grabs the go version defined in the go.mod rather than the one installed on the host. But you are correct, the host must have go installed in order to run the command.

@kian99 kian99 merged commit 28582ec into canonical:master Aug 29, 2023
1 of 2 checks passed
@kian99 kian99 deleted the docker-tweak branch August 29, 2023 09:08
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.

None yet

2 participants