feat: detect when go mod tidy
and build scaffolding is needed
#3360
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes #3129
Increases performance of go builds by 0.5s-0.8s in some cases.
Changes:
go mod tidy
(in either the main module directory, or in the build directory)Trigger details:
go.mod
,go.sum
ortypes.ftl.go
, always rebuild fullygo mod tidy
is required in the module's directorygo mod tidy
needs to be run in.ftl/go/main
Performace:
go mod tidy
usually takes around 0.5-0.8s (but can take more if network requests are required)go mod tidy
executions are run in parallel, so if either is required then there is no real performance gain. If neither is required then we see the performance improvement.