Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

cache go mod files when building #6

Merged
merged 1 commit into from Jul 5, 2021
Merged

cache go mod files when building #6

merged 1 commit into from Jul 5, 2021

Conversation

merlinran
Copy link
Contributor

Current code uses go build cache and saves a lot of time, but it still downloads all dependencies when even a single line of go.mod or go.sum changes, which is a big waste of CPU cycles and network traffic. This PR caches go modules too.

Signed-off-by: Merlin Ran <merlinran@gmail.com>
@merlinran merlinran requested a review from jsign July 5, 2021 21:25
Copy link
Contributor

@jsign jsign left a comment

Choose a reason for hiding this comment

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

💯

@merlinran merlinran merged commit 1b9df01 into main Jul 5, 2021
@merlinran merlinran deleted the merlin/cache-go-mod branch July 5, 2021 21:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants