1
0
mirror of https://github.com/go-task/task.git synced 2025-01-22 05:10:17 +02:00

Revert "Ensure the $HOME env is being set on Windows"

This reverts commit 52028fc3bc5c9a80d3974b2f74efa491229df075.
This commit is contained in:
Andrey Nering 2019-09-08 21:56:23 -03:00
parent bbdd698869
commit 0e1d8a72e6
4 changed files with 0 additions and 22 deletions

View File

@ -10,7 +10,6 @@ import (
"github.com/go-task/task/v2"
"github.com/go-task/task/v2/internal/args"
_ "github.com/go-task/task/v2/internal/homefix"
"github.com/spf13/pflag"
)

View File

@ -1,5 +0,0 @@
// Package homefix exists to address a bug where mvdan.cc/sh expects
// $HOME to be available in order to be able to expand "~".
//
// We should delete this package once this is fixed there.
package homefix

View File

@ -1,15 +0,0 @@
package homefix
import (
"os"
"github.com/mitchellh/go-homedir"
)
func init() {
if os.Getenv("HOME") == "" {
if home, err := homedir.Dir(); err == nil {
os.Setenv("HOME", home)
}
}
}

View File

@ -12,7 +12,6 @@ import (
"testing"
"github.com/go-task/task/v2"
_ "github.com/go-task/task/v2/internal/homefix"
"github.com/go-task/task/v2/internal/taskfile"
"github.com/mitchellh/go-homedir"