# GoAppResource.WithModVendor

- Module: [Aspire.Hosting.Go](/reference/api/go/aspire.hosting.go.md)
- Defined on: [GoAppResource](/reference/api/go/aspire.hosting.go/goappresource.md)
- Version: `17.0.0`
- Kind: `method`

Runs `go mod vendor` before starting the application, caching all module dependencies in the local `vendor/` directory. The main application waits for the vendor step to complete successfully before launching.

## Definition

```go
type GoAppResource interface {
    // ... omitted for brevity
    WithModVendor() GoAppResource
}
```

## Signature

```go
WithModVendor() GoAppResource
```

## Returns

[`GoAppResource`](/reference/api/go/aspire.hosting.go/goappresource.md) -- The resource builder.

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

## Defined on

- [GoAppResource](/reference/api/go/aspire.hosting.go/goappresource.md) -- `handle`
