update the rest of the go:generate calls

This commit is contained in:
James Bardin 2025-02-12 08:24:37 -05:00
parent e1485f27fc
commit 3b3e4bf003
21 changed files with 22 additions and 22 deletions

View file

@ -82,7 +82,7 @@ func (k checkRuleKey) uniqueKeySigil() {}
// itself.)
type CheckRuleType int
//go:generate go run golang.org/x/tools/cmd/stringer -type=CheckRuleType check_rule.go
//go:generate go tool golang.org/x/tools/cmd/stringer -type=CheckRuleType check_rule.go
const (
InvalidCondition CheckRuleType = 0

View file

@ -49,7 +49,7 @@ var (
// CheckableKind describes the different kinds of checkable objects.
type CheckableKind rune
//go:generate go run golang.org/x/tools/cmd/stringer -type=CheckableKind checkable.go
//go:generate go tool golang.org/x/tools/cmd/stringer -type=CheckableKind checkable.go
const (
CheckableKindInvalid CheckableKind = 0

View file

@ -9,7 +9,7 @@ import "fmt"
// address can refer to.
type MoveEndpointKind rune
//go:generate go run golang.org/x/tools/cmd/stringer -type MoveEndpointKind
//go:generate go tool golang.org/x/tools/cmd/stringer -type MoveEndpointKind
const (
// MoveEndpointModule indicates that a move endpoint either refers to

View file

@ -9,7 +9,7 @@ import "fmt"
// target address can refer to.
type RemoveTargetKind rune
//go:generate go run golang.org/x/tools/cmd/stringer -type RemoveTargetKind
//go:generate go tool golang.org/x/tools/cmd/stringer -type RemoveTargetKind
const (
// RemoveTargetModule indicates that a remove target refers to

View file

@ -493,7 +493,7 @@ func (k configResourceKey) uniqueKeySigil() {}
// resource lifecycle has a slightly different address format.
type ResourceMode rune
//go:generate go run golang.org/x/tools/cmd/stringer -type ResourceMode
//go:generate go tool golang.org/x/tools/cmd/stringer -type ResourceMode
const (
// InvalidResourceMode is the zero value of ResourceMode and is not

View file

@ -3,7 +3,7 @@
package backendrun
//go:generate go run golang.org/x/tools/cmd/stringer -type=OperationType operation_type.go
//go:generate go tool golang.org/x/tools/cmd/stringer -type=OperationType operation_type.go
// OperationType is an enum used with Operation to specify the operation
// type to perform for Terraform.

View file

@ -3,7 +3,7 @@
package http
//go:generate go run go.uber.org/mock/mockgen -package $GOPACKAGE -source $GOFILE -destination mock_$GOFILE
//go:generate go tool go.uber.org/mock/mockgen -package $GOPACKAGE -source $GOFILE -destination mock_$GOFILE
import (
"context"

View file

@ -13,7 +13,7 @@ import (
// checkable object.
type Status rune
//go:generate go run golang.org/x/tools/cmd/stringer -type=Status
//go:generate go tool golang.org/x/tools/cmd/stringer -type=Status
const (
// StatusUnknown represents that there is not yet a conclusive result

View file

@ -17,7 +17,7 @@ import (
// the context of Cloud integration mode.
type ConfigChangeMode rune
//go:generate go run golang.org/x/tools/cmd/stringer -type ConfigChangeMode
//go:generate go tool golang.org/x/tools/cmd/stringer -type ConfigChangeMode
const (
// ConfigMigrationIn represents when the configuration calls for using

View file

@ -1,6 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
//go:generate go run go.uber.org/mock/mockgen -destination mock.go github.com/hashicorp/terraform/internal/cloudplugin/cloudproto1 CommandServiceClient,CommandService_ExecuteClient
//go:generate go tool go.uber.org/mock/mockgen -destination mock.go github.com/hashicorp/terraform/internal/cloudplugin/cloudproto1 CommandServiceClient,CommandService_ExecuteClient
package mock_cloudproto1

View file

@ -1,6 +1,6 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
//go:generate go run go.uber.org/mock/mockgen -destination mock.go github.com/hashicorp/terraform/internal/tfplugin6 ProviderClient
//go:generate go tool go.uber.org/mock/mockgen -destination mock.go github.com/hashicorp/terraform/internal/tfplugin6 ProviderClient
package mock_tfplugin6

View file

@ -15,7 +15,7 @@ import (
// types, and the others will be used only for one of plan or apply.
type ComponentInstanceStatus rune
//go:generate go run golang.org/x/tools/cmd/stringer -type=ComponentInstanceStatus component_instance.go
//go:generate go tool golang.org/x/tools/cmd/stringer -type=ComponentInstanceStatus component_instance.go
const (
ComponentInstanceStatusInvalid ComponentInstanceStatus = 0

View file

@ -17,7 +17,7 @@ import (
// types, and the others will be used only for one of plan or apply.
type ResourceInstanceStatus rune
//go:generate go run golang.org/x/tools/cmd/stringer -type=ResourceInstanceStatus resource_instance.go
//go:generate go tool golang.org/x/tools/cmd/stringer -type=ResourceInstanceStatus resource_instance.go
const (
ResourceInstanceStatusInvalid ResourceInstanceStatus = 0
@ -61,7 +61,7 @@ func (s ResourceInstanceStatus) ForProtobuf() stacks.StackChangeProgress_Resourc
// either "provisioned" or "errored".
type ProvisionerStatus rune
//go:generate go run golang.org/x/tools/cmd/stringer -type=ProvisionerStatus resource_instance.go
//go:generate go tool golang.org/x/tools/cmd/stringer -type=ProvisionerStatus resource_instance.go
const (
ProvisionerStatusInvalid ProvisionerStatus = 0

View file

@ -26,7 +26,7 @@ import (
type EvalPhase rune
//go:generate go run golang.org/x/tools/cmd/stringer -type EvalPhase
//go:generate go tool golang.org/x/tools/cmd/stringer -type EvalPhase
const (
NoPhase EvalPhase = 0

View file

@ -91,7 +91,7 @@ func isPlausibleRawKeyType(s string) bool {
// See the documentation for [KeyType] for more information.
type UnrecognizedKeyHandling rune
//go:generate go run golang.org/x/tools/cmd/stringer -type UnrecognizedKeyHandling
//go:generate go tool golang.org/x/tools/cmd/stringer -type UnrecognizedKeyHandling
const (
FailIfUnrecognized UnrecognizedKeyHandling = 'F'

View file

@ -55,7 +55,7 @@ type ResourceInstanceObject struct {
// ObjectStatus represents the status of a RemoteObject.
type ObjectStatus rune
//go:generate go run golang.org/x/tools/cmd/stringer -type ObjectStatus
//go:generate go tool golang.org/x/tools/cmd/stringer -type ObjectStatus
const (
// ObjectReady is an object status for an object that is ready to use.

View file

@ -132,7 +132,7 @@ func Export(mgr Reader) *statefile.File {
// is the receiver of that method and the "second" is the given argument.
type SnapshotMetaRel rune
//go:generate go run golang.org/x/tools/cmd/stringer -type=SnapshotMetaRel
//go:generate go tool golang.org/x/tools/cmd/stringer -type=SnapshotMetaRel
const (
// SnapshotOlder indicates that two snapshots have a common lineage and

View file

@ -3,7 +3,7 @@
package terraform
//go:generate go run golang.org/x/tools/cmd/stringer -type=walkOperation graph_walk_operation.go
//go:generate go tool golang.org/x/tools/cmd/stringer -type=walkOperation graph_walk_operation.go
// walkOperation is an enum which tells the walkContext what to do.
type walkOperation byte

View file

@ -256,7 +256,7 @@ const (
prevRunState
)
//go:generate go run golang.org/x/tools/cmd/stringer -type phaseState
//go:generate go tool golang.org/x/tools/cmd/stringer -type phaseState
// writeResourceInstanceState saves the given object as the current object for
// the selected resource instance.

View file

@ -158,7 +158,7 @@ func (v ValueSourceType) DiagnosticLabel() string {
}
}
//go:generate go run golang.org/x/tools/cmd/stringer -type ValueSourceType
//go:generate go tool golang.org/x/tools/cmd/stringer -type ValueSourceType
// InputValues is a map of InputValue instances.
type InputValues map[string]*InputValue

View file

@ -29,7 +29,7 @@ type Diagnostic interface {
type Severity rune
//go:generate go run golang.org/x/tools/cmd/stringer -type=Severity
//go:generate go tool golang.org/x/tools/cmd/stringer -type=Severity
const (
Error Severity = 'E'