provider "git" {
private_key = file("key.pem")
}
data "git_repository" "example" {
url = var.repo_url
}
To build the provider:
$ go build
To test the provider:
$ go test -v ./...
To run all acceptance tests:
Note: Acceptance tests create real resources, and often cost money to run.
$ TF_ACC=1 go test -v ./...
To run a subset of acceptance tests:
$ TF_ACC=1 go test -v ./... -run=TestAccDataSourceGitRepository