Skip to content

Commit 66beca5

Browse files
authored
fix(nats-auth-callout): correct wrong Go module path (#216)
go.mod declared the module as github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout, which is both the wrong plane (the service lives under src/control-plane-services/) and misspelled ("plan" instead of "plane"). Every import in the module, the Makefile ldflags, and every generated BUILD.bazel importpath repeated the same wrong string. Rewrote all of them to github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout. Verified with go build ./..., go vet ./..., and go test ./... in the module; all pass. No other file in the repo references the old path. NO-REF Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
1 parent 1ec632b commit 66beca5

45 files changed

Lines changed: 75 additions & 75 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎src/control-plane-services/nats-auth-callout/BUILD.bazel‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
load("@gazelle//:def.bzl", "gazelle")
1717

18-
# gazelle:prefix github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout
18+
# gazelle:prefix github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout
1919
# gazelle:exclude local-dev
2020
# gazelle:exclude deploy
2121
# gazelle:exclude docs

‎src/control-plane-services/nats-auth-callout/Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ BUILD_DATE ?= $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
66
# Build variables
77
BINARY_NAME = nvcf-nats-auth-callout-service
88
MAIN_PATH = ./cmd/nvcf-nats-auth-callout-service
9-
LDFLAGS = -ldflags "-X github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/version.Version=$(VERSION) \
10-
-X github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/version.GitCommit=$(GIT_COMMIT) \
11-
-X github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/version.BuildDate=$(BUILD_DATE)"
9+
LDFLAGS = -ldflags "-X github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/version.Version=$(VERSION) \
10+
-X github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/version.GitCommit=$(GIT_COMMIT) \
11+
-X github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/version.BuildDate=$(BUILD_DATE)"
1212

1313
# Docker build variables
1414
DOCKER_IMAGE_NAME ?= $(BINARY_NAME)

‎src/control-plane-services/nats-auth-callout/api/BUILD.bazel‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ load("@rules_go//go:def.bzl", "go_library")
1818
go_library(
1919
name = "api",
2020
srcs = ["docs.go"],
21-
importpath = "github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/api",
21+
importpath = "github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/api",
2222
visibility = ["//visibility:public"],
2323
deps = ["@com_github_swaggo_swag//:swag"],
2424
)

‎src/control-plane-services/nats-auth-callout/cmd/nvcf-nats-auth-callout-service/BUILD.bazel‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ go_library(
2020
name = "nvcf-nats-auth-callout-service_lib",
2121
srcs = ["main.go"],
2222
embedsrcs = ["config.yaml"],
23-
importpath = "github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/cmd/nvcf-nats-auth-callout-service",
23+
importpath = "github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/cmd/nvcf-nats-auth-callout-service",
2424
visibility = ["//visibility:private"],
2525
# Build-time stamping into internal/version, resolved by
2626
# tools/workspace_status.sh when bazel is invoked with --stamp (the CI
@@ -29,9 +29,9 @@ go_library(
2929
# tracing via version.GetVersion() matches the image tag. Unstamped
3030
# builds keep the "dev" / "unknown" defaults.
3131
x_defs = {
32-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/version.Version": "{STABLE_VERSION}",
33-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/version.GitCommit": "{STABLE_GIT_COMMIT}",
34-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/version.BuildDate": "{BUILD_DATE}",
32+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/version.Version": "{STABLE_VERSION}",
33+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/version.GitCommit": "{STABLE_GIT_COMMIT}",
34+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/version.BuildDate": "{BUILD_DATE}",
3535
},
3636
deps = ["//cmd/nvcf-nats-auth-callout-service/cli"],
3737
)

‎src/control-plane-services/nats-auth-callout/cmd/nvcf-nats-auth-callout-service/cli/BUILD.bazel‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ go_library(
2323
"server.go",
2424
"version.go",
2525
],
26-
importpath = "github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/cmd/nvcf-nats-auth-callout-service/cli",
26+
importpath = "github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/cmd/nvcf-nats-auth-callout-service/cli",
2727
# CLI is an implementation detail of the `cmd/` binary; no external
2828
# consumer should depend on it. CodeRabbit nit on !25.
2929
visibility = ["//cmd/nvcf-nats-auth-callout-service:__pkg__"],

‎src/control-plane-services/nats-auth-callout/cmd/nvcf-nats-auth-callout-service/cli/config_cmd.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"fmt"
2222

2323
"github.com/spf13/cobra"
24-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/config"
24+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/config"
2525
)
2626

2727
func makeConfigCmd() *cobra.Command {

‎src/control-plane-services/nats-auth-callout/cmd/nvcf-nats-auth-callout-service/cli/config_cmd_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"strings"
2626
"testing"
2727

28-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/config"
28+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/config"
2929

3030
"github.com/spf13/cobra"
3131
)

‎src/control-plane-services/nats-auth-callout/cmd/nvcf-nats-auth-callout-service/cli/root.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package cli
1919

2020
import (
2121
"github.com/spf13/cobra"
22-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/config"
22+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/config"
2323
)
2424

2525
// SetEmbeddedConfig sets the embedded default configuration

‎src/control-plane-services/nats-auth-callout/cmd/nvcf-nats-auth-callout-service/cli/server.go‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ import (
2727
"syscall"
2828
"time"
2929

30-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/config"
31-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/logger"
32-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/router"
33-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/service"
34-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/tracing"
35-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/version"
30+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/config"
31+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/logger"
32+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/router"
33+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/service"
34+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/tracing"
35+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/version"
3636

3737
"github.com/spf13/cobra"
3838
"go.uber.org/zap"

‎src/control-plane-services/nats-auth-callout/cmd/nvcf-nats-auth-callout-service/cli/server_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
"testing"
2626
"time"
2727

28-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/config"
29-
"github.com/NVIDIA/nvcf/src/invocation-plan-services/nats-auth-callout/internal/router"
28+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/config"
29+
"github.com/NVIDIA/nvcf/src/control-plane-services/nats-auth-callout/internal/router"
3030

3131
"github.com/spf13/cobra"
3232
"github.com/spf13/pflag"

0 commit comments

Comments
 (0)