# withModVendor

- Module: [Aspire.Hosting.Go](/reference/api/typescript/aspire.hosting.go.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

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

```typescript
interface GoAppResource {
  // ... omitted for brevity
  withModVendor(): GoAppResource
}
```

## Returns

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

## Applies to

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