Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

GoAppResource.WithModDownload

Method
📦 Aspire.Hosting.Go v17.0.0
type GoAppResource interface {
// ... omitted for brevity
WithModDownload() GoAppResource
}

Signature

methodWithModDownloadbuilder
Runs go mod download before starting the application, pre-fetching all module dependencies into the local module cache without modifying go.sum. The main application waits for the download step to complete successfully before launching.
WithModDownload() GoAppResource
GoAppResource

The resource builder.

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

Defined on

This method is defined on the following type: