Skip to content

Commit

Permalink
Follow-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBaulch committed Nov 17, 2024
1 parent 86ae881 commit 9b52478
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
go-version: [1.22, 1.23]
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Windows support in the os backend.
### Fixed
- Ability to run all unit tests on Windows.

## [6.22.0] - 2024-11-06
### Fixed
Expand Down
4 changes: 2 additions & 2 deletions backend/sftp/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"io"
"os"
"path"
"path/filepath"
"runtime"
"strconv"

Expand Down Expand Up @@ -231,7 +231,7 @@ func findHomeSystemKnownHosts(knownHostsFiles []string) ([]string, error) {
if err != nil {
return nil, err
}
homeKnownHostsPath := path.Join(home, ".ssh/known_hosts")
homeKnownHostsPath := filepath.Join(home, ".ssh", "known_hosts")
if runtime.GOOS != "windows" {
homeKnownHostsPath = utils.EnsureLeadingSlash(homeKnownHostsPath)
}
Expand Down

0 comments on commit 9b52478

Please sign in to comment.