Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c57557

Browse files
committed
clarify documentation of gitAuthAccessTokenEnvironmentVariable
1 parent fbb60a5 commit 0c57557

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

provisioner/terraform/provision.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,11 @@ func tryGettingCoderProviderStacktrace(sess *provisionersdk.Session) string {
351351
return string(stacktraces)
352352
}
353353

354-
// gitAuthAccessTokenEnvironmentVariable was copied from provider.GitAuthAccessTokenEnvironmentVariable
355-
// in v1.0.4 of github.com/coder/terraform-provider-coder/provider when we upgraded to v2.
354+
// gitAuthAccessTokenEnvironmentVariable is copied from
355+
// github.com/coder/terraform-provider-coder/[email protected].
356+
// While removed in v2 of the provider, we keep this to support customers using older templates that
357+
// depend on this environment variable. Once we are certain that no customers are still using v1 of
358+
// the provider, we can remove this function.
356359
func gitAuthAccessTokenEnvironmentVariable(id string) string {
357360
return fmt.Sprintf("CODER_GIT_AUTH_ACCESS_TOKEN_%s", id)
358361
}

0 commit comments

Comments
 (0)