Run make fmt. (#29053)

This commit is contained in:
Victor Rodriguez
2024-11-28 16:27:17 +01:00
committed by GitHub
parent dc343f3566
commit ba969bb14f
9 changed files with 8 additions and 16 deletions

View File

@@ -14,14 +14,13 @@ import (
"strings" "strings"
"time" "time"
gocache "github.com/patrickmn/go-cache"
oktaold "github.com/chrismalek/oktasdk-go/okta" oktaold "github.com/chrismalek/oktasdk-go/okta"
"github.com/hashicorp/go-cleanhttp" "github.com/hashicorp/go-cleanhttp"
"github.com/hashicorp/vault/sdk/framework" "github.com/hashicorp/vault/sdk/framework"
"github.com/hashicorp/vault/sdk/helper/tokenutil" "github.com/hashicorp/vault/sdk/helper/tokenutil"
"github.com/hashicorp/vault/sdk/logical" "github.com/hashicorp/vault/sdk/logical"
oktanew "github.com/okta/okta-sdk-golang/v5/okta" oktanew "github.com/okta/okta-sdk-golang/v5/okta"
gocache "github.com/patrickmn/go-cache"
) )
const ( const (

View File

@@ -6,13 +6,13 @@ package issuing
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/hashicorp/vault/sdk/logical"
"os" "os"
"strconv" "strconv"
"time" "time"
ctx509 "github.com/google/certificate-transparency-go/x509" ctx509 "github.com/google/certificate-transparency-go/x509"
"github.com/hashicorp/vault/sdk/helper/certutil" "github.com/hashicorp/vault/sdk/helper/certutil"
"github.com/hashicorp/vault/sdk/logical"
) )
// disableVerifyCertificateEnvVar is an environment variable that can be used to disable the // disableVerifyCertificateEnvVar is an environment variable that can be used to disable the

View File

@@ -6,10 +6,9 @@ package cmd
import ( import (
"context" "context"
"github.com/spf13/cobra"
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/generate" "github.com/hashicorp/vault/tools/pipeline/internal/pkg/generate"
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases" "github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases"
"github.com/spf13/cobra"
) )
// skipVersionsDefault are versions that we skip by default. This list can grow as necessary. // skipVersionsDefault are versions that we skip by default. This list can grow as necessary.

View File

@@ -8,9 +8,8 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/spf13/cobra"
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases" "github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases"
"github.com/spf13/cobra"
) )
var listReleaseVersionsReq = &releases.ListVersionsReq{ var listReleaseVersionsReq = &releases.ListVersionsReq{

View File

@@ -13,12 +13,11 @@ import (
"slices" "slices"
"github.com/Masterminds/semver" "github.com/Masterminds/semver"
slogctx "github.com/veqryn/slog-context"
"github.com/hashicorp/hcl/v2/gohcl" "github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/hcl/v2/hclwrite" "github.com/hashicorp/hcl/v2/hclwrite"
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/metadata" "github.com/hashicorp/vault/tools/pipeline/internal/pkg/metadata"
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases" "github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases"
slogctx "github.com/veqryn/slog-context"
) )
// EnosDynamicConfigReq is a request to generate dynamic enos configuration // EnosDynamicConfigReq is a request to generate dynamic enos configuration

View File

@@ -10,9 +10,8 @@ import (
"slices" "slices"
"testing" "testing"
"github.com/stretchr/testify/require"
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases" "github.com/hashicorp/vault/tools/pipeline/internal/pkg/releases"
"github.com/stretchr/testify/require"
) )
var testAPIVersions = []string{ var testAPIVersions = []string{

View File

@@ -11,11 +11,10 @@ import (
"time" "time"
"github.com/Masterminds/semver" "github.com/Masterminds/semver"
slogctx "github.com/veqryn/slog-context"
"github.com/hashicorp/releases-api/pkg/api" "github.com/hashicorp/releases-api/pkg/api"
"github.com/hashicorp/releases-api/pkg/client" "github.com/hashicorp/releases-api/pkg/client"
"github.com/hashicorp/releases-api/pkg/models" "github.com/hashicorp/releases-api/pkg/models"
slogctx "github.com/veqryn/slog-context"
) )
// Client is an api.releases.hashicorp.com API client. // Client is an api.releases.hashicorp.com API client.

View File

@@ -7,7 +7,6 @@ import (
"context" "context"
"github.com/Masterminds/semver" "github.com/Masterminds/semver"
"github.com/hashicorp/releases-api/pkg/models" "github.com/hashicorp/releases-api/pkg/models"
) )

View File

@@ -11,9 +11,8 @@ import (
"slices" "slices"
"github.com/Masterminds/semver" "github.com/Masterminds/semver"
slogctx "github.com/veqryn/slog-context"
"github.com/hashicorp/vault/tools/pipeline/internal/pkg/metadata" "github.com/hashicorp/vault/tools/pipeline/internal/pkg/metadata"
slogctx "github.com/veqryn/slog-context"
) )
// ListVersionsReq is a request to list versions from the releases API. // ListVersionsReq is a request to list versions from the releases API.