Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithModTidy

Method
📦 Aspire.Hosting.Go v17.0.0
func (GoAppResource) WithModTidy() GoAppResource

Signature

methodWithModTidybuilder
Runs go mod tidy before starting the application, ensuring go.sum is up to date. The main application waits for the tidy step to complete successfully before launching.
WithModTidy() GoAppResource
GoAppResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: