Skip to content

Commit

Permalink
Document UpstreamRepoPath (#2566)
Browse files Browse the repository at this point in the history
Fixes #2563

---------

Co-authored-by: Florian Stadler <[email protected]>
  • Loading branch information
iwahbe and flostadler authored Nov 1, 2024
1 parent 9bcae10 commit 0854c53
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pkg/tfbridge/info/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,18 @@ type Provider struct {
// Rules that control file discovery and edits for any subset of docs in a provider.
DocRules *DocRule

UpstreamRepoPath string // An optional path that overrides upstream location during docs lookup
// An optional file path to the root of the upstream provider's git repo, for use in docs generation.
//
// If UpstreamRepoPath is left blank, it is inferred to the location where Go downloaded the build
// dependency of the provider. The following fields influence the inference decision:
//
// - GitHubHost
// - GitHubOrg
// - Name
// - TFProviderModuleVersion
//
// This list may change over time.
UpstreamRepoPath string

// EXPERIMENTAL: the signature may change in minor releases.
//
Expand Down

0 comments on commit 0854c53

Please sign in to comment.