Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SSH config cannot use SetEnv without multiple problems #559

Assignees
EhabY
@deansheather

Description

@deansheather
  1. The only way to set an env is to useSetEnv=MY_VAR=value. If you useSetEnv MY_VAR=true, the env var gets added to the config incorrectly and SSH fails to load because of bad splitting:

    constuserConfig=userConfigSSH.reduce(
    (acc,line)=>{
    leti=line.indexOf("=");
    if(i===-1){
    i=line.indexOf(" ");
    if(i===-1){
    // This line is malformed. The setting is incorrect, and does not match
    // the pattern regex in the settings schema.
    returnacc;
    }
    }
    constkey=line.slice(0,i);
    constvalue=line.slice(i+1);
    acc[key]=value;
    returnacc;
    },
    {}asRecord<string,string>,
    );

  2. Setting anySetEnv variables causes the defaultSetEnv CODER_SSH_SESSION_TYPE=vscode to be removed. This is because we use a map to store the key/value pairs.

  3. You cannot have multipleSetEnv config lines, only one will be processed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp