From 6c73ab823b5e34430eacbb7b2ec14bd80995a58b Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Mon, 6 Sep 2021 10:30:45 -0300 Subject: [PATCH] Add CHANGELOG + gofmt for #557 --- CHANGELOG.md | 5 +++++ taskfile/read/taskfile.go | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 474ee613..7deec98c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## Unreleased + +- Add support for including Taskfiles in the home directory by using `~` + ([#539](https://github.com/go-task/task/issues/539), [#557](https://github.com/go-task/task/pull/557)). + ## 3.7.3 - 2021-09-04 - Add official support to Apple M1 ([#564](https://github.com/go-task/task/pull/564), [#567](https://github.com/go-task/task/pull/567)). diff --git a/taskfile/read/taskfile.go b/taskfile/read/taskfile.go index 9c765ee6..5a75f0db 100644 --- a/taskfile/read/taskfile.go +++ b/taskfile/read/taskfile.go @@ -54,8 +54,7 @@ func Taskfile(dir string, entrypoint string) (*taskfile.Taskfile, error) { if err != nil { return err } - - if ! filepath.IsAbs(path) { + if !filepath.IsAbs(path) { path = filepath.Join(dir, path) }