Use filepath.Join to support different platforms

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
This commit is contained in:
Babak K. Shandiz 2024-04-14 00:09:53 +01:00
parent d241259d4e
commit 1992fdeb1a
No known key found for this signature in database
GPG key ID: 44950AED81AD710F

View file

@ -115,9 +115,9 @@ func TestLogin(t *testing.T) {
The minimum required scopes are 'repo', 'read:org', 'admin:public_key'.
- gh config set -h example.com git_protocol ssh
Configured git protocol
Uploaded the SSH key to your GitHub account: %s/id_ed25519.pub
Uploaded the SSH key to your GitHub account: %s
Logged in as monalisa
`, opts.sshContext.ConfigDir), stderr)
`, filepath.Join(opts.sshContext.ConfigDir, "id_ed25519.pub")), stderr)
},
},
{
@ -193,9 +193,9 @@ func TestLogin(t *testing.T) {
The minimum required scopes are 'repo', 'read:org', 'admin:public_key'.
- gh config set -h example.com git_protocol ssh
Configured git protocol
Uploaded the SSH key to your GitHub account: %s/id_ed25519.pub
Uploaded the SSH key to your GitHub account: %s
Logged in as monalisa
`, opts.sshContext.ConfigDir), stderr)
`, filepath.Join(opts.sshContext.ConfigDir, "id_ed25519.pub")), stderr)
},
},
{