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

Make sure version is properly set on CI #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pointlessone
Copy link
Contributor

Go doesn't really lock dep versions so it might change on rebuild. This may result in version being improperly set.

With this change version is updated during image build.

@@ -6,14 +6,15 @@ RUN adduser -u 9000 -D app

WORKDIR /usr/src/app

COPY engine.json /engine.json
Copy link
Contributor

Choose a reason for hiding this comment

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

hm, so trying to understand how this worked before - i think the idea was that this layer would control the caching, meaning if this file did not change, it wouldn't re-run the below steps and actually pull in a different go lint version.

running update could potentially change this file (which happened at the beginning of the image command), and break this cache layer, causing the below steps to run and actually pull in that sha. i think this is what we do in api for example with the dockerfile-version file.

what was the problem with how this was working before?

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

3 participants