Skip to content

Commit

Permalink
[fyne-io#250] Make -cache work with relative path.
Browse files Browse the repository at this point in the history
  • Loading branch information
williambrode committed May 14, 2024
1 parent 187fb53 commit 2e867fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/volume/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ func Mount(workDirHost string, cacheDirHost string) (Volume, error) {
if err != nil {
return Volume{}, err
}
} else {
cacheDirHost, err = filepath.Abs(cacheDirHost)
if err != nil {
return Volume{}, fmt.Errorf("could not make the cache directory an absolute path: %w", err)
}
}

l := Volume{
Expand Down

0 comments on commit 2e867fc

Please sign in to comment.