Commit 98c9f5fd authored by techknowlogick's avatar techknowlogick
Browse files

teleport_15: 15.4.11 -> 15.4.21

parent 8c29c73a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
{ wasm-bindgen-cli, ... }@args:
import ../generic.nix (args // {
  version = "15.4.11";
  hash = "sha256-vmJ76aRAsbSGXZ2HcuryOlUYrUOPMP6MaI8OjxxyiZ4=";
  vendorHash = "sha256-oJo8Ga6TAUz1xSYiRckzq8zZvgIZFCeEwZbiyyVOdkI=";
  yarnHash = "sha256-5ppgBa5CyQ49FSFhdWDbTcCTdt0vsXAzNTeyG4r7crg=";
  version = "15.4.21";
  hash = "sha256-n5dAJ5ilq5nHo3neQzCUFnDRwLhArwleMSho4/g0MT4=";
  vendorHash = "sha256-bW8ztNeSzxUNtbuBtxIya9TeGfktC+/fz9iXB0GL0Mg=";
  yarnHash = "sha256-ZaLLrcwAeq6TQ1SaA2few4s0HqktOZEpxCTcNGloGfk=";
  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ buildGoModule rec {
  patches = extPatches ++ [
    ./0001-fix-add-nix-path-to-exec-env.patch
    ./rdpclient.patch
    (if lib.versionAtLeast version "16" then ./tsh_16.patch else ./tsh.patch)
    ./tsh.patch
  ];

  # Reduce closure size for client machines
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ index 5de21c69d0..3995c19e3c 100644
 	if err != nil {
 		return trace.Wrap(err)
 	}
+	cf.executablePath = path.Dir(tempBinaryPath) + "/tsh"
+	cf.executablePath = filepath.Dir(tempBinaryPath) + "/tsh"
 
 	// configs
 	setEnvFlags(&cf)
+0 −17
Original line number Diff line number Diff line
diff --git a/tool/tsh/common/tsh.go b/tool/tsh/common/tsh.go
index 5de21c69d0..3995c19e3c 100644
--- a/tool/tsh/common/tsh.go
+++ b/tool/tsh/common/tsh.go
@@ -1084,10 +1084,11 @@ func Run(ctx context.Context, args []string, opts ...CliOption) error {
 
 	var err error
 
-	cf.executablePath, err = os.Executable()
+	tempBinaryPath, err := os.Executable()
 	if err != nil {
 		return trace.Wrap(err)
 	}
+	cf.executablePath = filepath.Dir(tempBinaryPath) + "/tsh"
 
 	// configs
 	setEnvFlags(&cf)