Skip to content

Commit

Permalink
docs: document schema bundling in CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarm committed Jun 14, 2024
1 parent 393cfbf commit e1ea0c7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/INTERNAL-20240614-105429.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: INTERNAL
body: Document schema bundling in CONTRIBUTING.md
time: 2024-06-14T10:54:29.627322+02:00
custom:
Issue: "1736"
Repository: terraform-ls
12 changes: 12 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@ go test ./internal/terraform/exec/...
go test ./langserver
```

### Bundled schemas

The language server ships with bundled provider schemas of all official HashiCorp and partner providers to allow completions for common providers without the need to initialize a Terraform project first.
These schemas are not checked into version control and are automatically fetched and bundled when the language server is built in CI.

To generate these locally, run
```bash
go generate ./internal/schemas
```

The generated schemas can then be found in `internal/schemas/data`.

## External Dependencies

Terraform uses [Go Modules]((https://blog.golang.org/using-go-modules))
Expand Down

0 comments on commit e1ea0c7

Please sign in to comment.