Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
Changing go path
Browse files Browse the repository at this point in the history
I am modifying the go path to a github.com URL.

Change-Id: I0dffbae26f6c9f7296d0a25eebe3c1e7f1910407
  • Loading branch information
chrislovecnm committed Jul 25, 2019
1 parent 7f71e8d commit b84291e
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@bazel_gazelle//:def.bzl", "gazelle")

# gazelle:prefix partner-code.googlesource.com/gke-terraform-generator
# gazelle:prefix github.com/GoogleCloudPlatform/gke-terraform-generator
gazelle(name = "gazelle")

go_library(
Expand All @@ -24,7 +24,7 @@ go_library(
"doc.go",
"main.go",
],
importpath = "partner-code.googlesource.com/gke-terraform-generator",
importpath = "github.com/GoogleCloudPlatform/gke-terraform-generator",
visibility = ["//visibility:private"],
deps = ["//cmd:go_default_library"],
)
Expand All @@ -34,6 +34,6 @@ go_binary(
embed = [":go_default_library"],
visibility = ["//visibility:public"],
x_defs = {
"partner-code.googlesource.com/gke-terraform-generator/pkg/version.Version": "{GKE_TF_VERSION}",
"github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/version.Version": "{GKE_TF_VERSION}",
},
)
2 changes: 1 addition & 1 deletion cmd/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ go_library(
"gen.go",
"version.go",
],
importpath = "partner-code.googlesource.com/gke-terraform-generator/cmd",
importpath = "github.com/GoogleCloudPlatform/gke-terraform-generator/cmd",
visibility = ["//visibility:public"],
deps = [
"//pkg/api:go_default_library",
Expand Down
6 changes: 3 additions & 3 deletions cmd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (

"k8s.io/klog"

"partner-code.googlesource.com/gke-terraform-generator/pkg/api"
"partner-code.googlesource.com/gke-terraform-generator/pkg/files"
"partner-code.googlesource.com/gke-terraform-generator/pkg/templates"
"github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/api"
"github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/files"
"github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/templates"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"fmt"
"io"

"github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/version"
"github.com/spf13/cobra"
"partner-code.googlesource.com/gke-terraform-generator/pkg/version"
)

// NewVersionCommand is the entry point for cobra for the version command.
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 partner-code.googlesource.com/gke-terraform-generator
module github.com/GoogleCloudPlatform/gke-terraform-generator

require (
github.com/creasty/defaults v1.3.0
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

package main

import "partner-code.googlesource.com/gke-terraform-generator/cmd"
import "github.com/GoogleCloudPlatform/gke-terraform-generator/cmd"

func main() {
cmd.Execute()
Expand Down
2 changes: 1 addition & 1 deletion pkg/analyzer/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ go_tool_library(
go_library(
name = "go_default_library",
srcs = ["importunsafe.go"],
importpath = "partner-code.googlesource.com/gke-terraform-generator/pkg/analyzer",
importpath = "github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/analyzer",
visibility = ["//visibility:public"],
deps = ["@org_golang_x_tools//go/analysis:go_default_library"],
)
2 changes: 1 addition & 1 deletion pkg/api/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ go_library(
"doc.go",
"validate.go",
],
importpath = "partner-code.googlesource.com/gke-terraform-generator/pkg/api",
importpath = "github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/api",
visibility = ["//visibility:public"],
deps = [
"@com_github_creasty_defaults//:go_default_library",
Expand Down
2 changes: 1 addition & 1 deletion pkg/files/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ go_library(
"is-writeable-directory.go",
"is-writeable_windows.go",
],
importpath = "partner-code.googlesource.com/gke-terraform-generator/pkg/files",
importpath = "github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/files",
visibility = ["//visibility:public"],
deps = ["@io_k8s_klog//:go_default_library"],
)
2 changes: 1 addition & 1 deletion pkg/templates/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_embed_data", "go_test")
go_library(
name = "go_default_library",
srcs = ["templates.go"],
importpath = "partner-code.googlesource.com/gke-terraform-generator/pkg/templates",
importpath = "github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/templates",
visibility = ["//visibility:public"],
deps = [
"//pkg/api:go_default_library",
Expand Down
6 changes: 3 additions & 3 deletions pkg/templates/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import (

"k8s.io/klog"

"partner-code.googlesource.com/gke-terraform-generator/pkg/api"
"partner-code.googlesource.com/gke-terraform-generator/pkg/terraform/cft"
"partner-code.googlesource.com/gke-terraform-generator/pkg/terraform/vanilla"
"github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/api"
"github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/terraform/cft"
"github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/terraform/vanilla"
)

type TFType int
Expand Down
4 changes: 2 additions & 2 deletions pkg/templates/templates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"strings"
"testing"

"partner-code.googlesource.com/gke-terraform-generator/pkg/api"
"partner-code.googlesource.com/gke-terraform-generator/pkg/terraform/cft"
"github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/api"
"github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/terraform/cft"
)

// TODO implement https://github.com/hashicorp/hcl/blob/master/decoder_test.go
Expand Down
2 changes: 1 addition & 1 deletion pkg/terraform/cft/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ go_library(
":gke_network",
":gke_main",
],
importpath = "partner-code.googlesource.com/gke-terraform-generator/pkg/terraform/cft",
importpath = "github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/terraform/cft",
visibility = ["//visibility:public"],
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/terraform/vanilla/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ go_library(
":gke_network",
":gke_main",
],
importpath = "partner-code.googlesource.com/gke-terraform-generator/pkg/terraform/vanilla",
importpath = "github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/terraform/vanilla",
visibility = ["//visibility:public"],
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/version/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["version.go"],
importpath = "partner-code.googlesource.com/gke-terraform-generator/pkg/version",
importpath = "github.com/GoogleCloudPlatform/gke-terraform-generator/pkg/version",
visibility = ["//visibility:public"],
)

0 comments on commit b84291e

Please sign in to comment.