Commit b6ff8147 authored by Muhammad Umair Khan's avatar Muhammad Umair Khan
Browse files

But Fix: add path find code in meepctl

parent b6eec826
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ meep.configure_sandbox_secrets(
)

meep.deploy_dep(
    name="Deploy MEC Sandbox dependencies (meepctl deploy dep all -f)",
    name="Deploy MEC Sandbox dependencies (meepctl deploy dep all)",
    mec_sandbox_dir=mec_sandbox_dir,
    target_home=target_home,
    node_version=node_version,
@@ -150,7 +150,7 @@ meep.dockerize_all(
)

meep.deploy_core(
    name="Deploy MEC Sandbox core platform (meepctl deploy core all -f)",
    name="Deploy MEC Sandbox core platform (meepctl deploy core all)",
    mec_sandbox_dir=mec_sandbox_dir,
    target_home=target_home,
    node_version=node_version,
+13 −0
Original line number Diff line number Diff line
@@ -91,4 +91,17 @@ func initConfig() {
	if err := viper.ReadInConfig(); err == nil {
		fmt.Println("Using meepctl config file:", viper.ConfigFileUsed())
	}

	// Ensure Go and GOPATH/bin are in PATH so meepctl can find go and golangci-lint
	path := os.Getenv("PATH")
	home, _ := homedir.Dir()
	if home != "" {
		gocodeBin := home + "/gocode/bin"
		if path == "" {
			path = "/usr/local/go/bin:" + gocodeBin
		} else {
			path = path + ":/usr/local/go/bin:" + gocodeBin
		}
		_ = os.Setenv("PATH", path)
	}
}