Skip to content

Commit 15a6cd2

Browse files
authored
stacks: fix diagnostic referring to tfstacks command (#37639)
1 parent 719aefd commit 15a6cd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/stacks/stackruntime/internal/stackeval/provider_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func CheckProviderInLockfile(locks depsfile.Locks, providerType *ProviderType, d
8686
Severity: hcl.DiagError,
8787
Summary: "Provider missing from lockfile",
8888
Detail: fmt.Sprintf(
89-
"Provider %q is not in the lockfile. This provider must be in the lockfile to be used in the configuration. Please run `tfstacks providers lock` to update the lockfile and run this operation again with an updated configuration.",
89+
"Provider %q is not in the lockfile. This provider must be in the lockfile to be used in the configuration. Please run `terraform stacks providers lock` to update the lockfile and run this operation again with an updated configuration.",
9090
providerType.Addr(),
9191
),
9292
Subject: declRange,

internal/stacks/stackruntime/validate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ Terraform uses references to decide a suitable order for performing operations,
478478
return diags.Append(&hcl.Diagnostic{
479479
Severity: hcl.DiagError,
480480
Summary: "Provider missing from lockfile",
481-
Detail: "Provider \"registry.terraform.io/hashicorp/testing\" is not in the lockfile. This provider must be in the lockfile to be used in the configuration. Please run `tfstacks providers lock` to update the lockfile and run this operation again with an updated configuration.",
481+
Detail: "Provider \"registry.terraform.io/hashicorp/testing\" is not in the lockfile. This provider must be in the lockfile to be used in the configuration. Please run `terraform stacks providers lock` to update the lockfile and run this operation again with an updated configuration.",
482482
Subject: &hcl.Range{
483483
Filename: "git::https://example.com/test.git//with-single-input/input-from-component/input-from-component.tfcomponent.hcl",
484484
Start: hcl.Pos{Line: 8, Column: 1, Byte: 98},

0 commit comments

Comments
 (0)