Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
ke zheng authored and ke zheng committed Aug 28, 2024
1 parent b6cd97f commit 9e8f0c9
Show file tree
Hide file tree
Showing 3,280 changed files with 29 additions and 457,969 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
16 changes: 8 additions & 8 deletions cmd/tofu/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import (
"github.com/hashicorp/terraform-svchost/disco"
"github.com/mitchellh/cli"

"github.com/opentofu/opentofu/internal/addrs"
"github.com/opentofu/opentofu/internal/command"
"github.com/opentofu/opentofu/internal/command/cliconfig"
"github.com/opentofu/opentofu/internal/command/views"
"github.com/opentofu/opentofu/internal/command/webbrowser"
"github.com/opentofu/opentofu/internal/getproviders"
pluginDiscovery "github.com/opentofu/opentofu/internal/plugin/discovery"
"github.com/opentofu/opentofu/internal/terminal"
"github.com/kubegems/opentofu/pkg/addrs"
"github.com/kubegems/opentofu/pkg/command"
"github.com/kubegems/opentofu/pkg/command/cliconfig"
"github.com/kubegems/opentofu/pkg/command/views"
"github.com/kubegems/opentofu/pkg/command/webbrowser"
"github.com/kubegems/opentofu/pkg/getproviders"
pluginDiscovery "github.com/kubegems/opentofu/pkg/plugin/discovery"
"github.com/kubegems/opentofu/pkg/terminal"
)

// runningInAutomationEnvName gives the name of an environment variable that
Expand Down
18 changes: 9 additions & 9 deletions cmd/tofu/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ import (
"github.com/apparentlymart/go-shquot/shquot"
"github.com/hashicorp/go-plugin"
"github.com/hashicorp/terraform-svchost/disco"
"github.com/kubegems/opentofu/pkg/addrs"
"github.com/kubegems/opentofu/pkg/command/cliconfig"
"github.com/kubegems/opentofu/pkg/command/format"
"github.com/kubegems/opentofu/pkg/didyoumean"
"github.com/kubegems/opentofu/pkg/httpclient"
"github.com/kubegems/opentofu/pkg/logging"
"github.com/kubegems/opentofu/pkg/terminal"
"github.com/kubegems/opentofu/version"
"github.com/mattn/go-shellwords"
"github.com/mitchellh/cli"
"github.com/mitchellh/colorstring"
"github.com/opentofu/opentofu/internal/addrs"
"github.com/opentofu/opentofu/internal/command/cliconfig"
"github.com/opentofu/opentofu/internal/command/format"
"github.com/opentofu/opentofu/internal/didyoumean"
"github.com/opentofu/opentofu/internal/httpclient"
"github.com/opentofu/opentofu/internal/logging"
"github.com/opentofu/opentofu/internal/terminal"
"github.com/opentofu/opentofu/version"
"go.opentelemetry.io/otel/trace"

backendInit "github.com/opentofu/opentofu/internal/backend/init"
backendInit "github.com/kubegems/opentofu/pkg/backend/init"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/tofu/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"path/filepath"
"runtime"

"github.com/opentofu/opentofu/internal/command/cliconfig"
"github.com/kubegems/opentofu/pkg/command/cliconfig"
)

// globalPluginDirs returns directories that should be searched for
Expand Down
8 changes: 4 additions & 4 deletions cmd/tofu/provider_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
"github.com/apparentlymart/go-userdirs/userdirs"
"github.com/hashicorp/terraform-svchost/disco"

"github.com/opentofu/opentofu/internal/addrs"
"github.com/opentofu/opentofu/internal/command/cliconfig"
"github.com/opentofu/opentofu/internal/getproviders"
"github.com/opentofu/opentofu/internal/tfdiags"
"github.com/kubegems/opentofu/pkg/addrs"
"github.com/kubegems/opentofu/pkg/command/cliconfig"
"github.com/kubegems/opentofu/pkg/getproviders"
"github.com/kubegems/opentofu/pkg/tfdiags"
)

// providerSource constructs a provider source based on a combination of the
Expand Down
4 changes: 2 additions & 2 deletions cmd/tofu/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
semconv "go.opentelemetry.io/otel/semconv/v1.4.0"
"go.opentelemetry.io/otel/trace"

"github.com/opentofu/opentofu/version"
"github.com/kubegems/opentofu/version"
)

// If this environment variable is set to "otlp" when running OpenTofu CLI
Expand All @@ -35,7 +35,7 @@ const openTelemetryExporterEnvVar = "OTEL_TRACES_EXPORTER"
var tracer trace.Tracer

func init() {
tracer = otel.Tracer("github.com/opentofu/opentofu")
tracer = otel.Tracer("github.com/kubegems/opentofu")
}

// openTelemetryInit initializes the optional OpenTelemetry exporter.
Expand Down
2 changes: 1 addition & 1 deletion cmd/tofu/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
package main

import (
"github.com/opentofu/opentofu/version"
"github.com/kubegems/opentofu/version"
)

var Version = version.Version
Expand Down
2 changes: 1 addition & 1 deletion cmd/tofu/working_dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

package main

import "github.com/opentofu/opentofu/internal/command/workdir"
import "github.com/kubegems/opentofu/pkg/command/workdir"

func workingDir(originalDir string, overrideDataDir string) *workdir.Dir {
ret := workdir.NewDir(".") // caller should already have used os.Chdir in "-chdir=..." mode
Expand Down
2 changes: 1 addition & 1 deletion docs/plugin-protocol/tfplugin5.5.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// branch or any other development branch.
//
syntax = "proto3";
option go_package = "github.com/opentofu/opentofu/internal/tfplugin5";
option go_package = "github.com/kubegems/opentofu/pkg/tfplugin5";

package tfplugin5;

Expand Down
2 changes: 1 addition & 1 deletion docs/plugin-protocol/tfplugin6.5.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// branch or any other development branch.
//
syntax = "proto3";
option go_package = "github.com/opentofu/opentofu/internal/tfplugin6";
option go_package = "github.com/kubegems/opentofu/pkg/tfplugin6";

package tfplugin6;

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/opentofu/opentofu
module github.com/kubegems/opentofu

require (
cloud.google.com/go/kms v1.15.5
Expand Down
136 changes: 0 additions & 136 deletions internal/addrs/check.go

This file was deleted.

119 changes: 0 additions & 119 deletions internal/addrs/check_rule.go

This file was deleted.

Loading

0 comments on commit 9e8f0c9

Please sign in to comment.