mirror of
https://github.com/go-task/task.git
synced 2026-07-01 00:24:30 +00:00
feat: add use_gitignore option to exclude ignored files from sources/generates (#2773)
This commit is contained in:
11
testdata/gitignore_nested/Taskfile.yml
vendored
Normal file
11
testdata/gitignore_nested/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
version: '3'
|
||||
|
||||
use_gitignore: true
|
||||
|
||||
tasks:
|
||||
build:
|
||||
cmds:
|
||||
- echo "build executed"
|
||||
sources:
|
||||
- ./sub/*
|
||||
method: checksum
|
||||
1
testdata/gitignore_nested/sub/.gitignore
vendored
Normal file
1
testdata/gitignore_nested/sub/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
secret.dat
|
||||
1
testdata/gitignore_nested/sub/keep.txt
vendored
Normal file
1
testdata/gitignore_nested/sub/keep.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
keep
|
||||
2
testdata/gitignore_nested/testdata/TestGitignoreNested-first_run.golden
vendored
Normal file
2
testdata/gitignore_nested/testdata/TestGitignoreNested-first_run.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
task: [build] echo "build executed"
|
||||
build executed
|
||||
1
testdata/gitignore_nested/testdata/TestGitignoreNested-ignored_file_modified.golden
vendored
Normal file
1
testdata/gitignore_nested/testdata/TestGitignoreNested-ignored_file_modified.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
task: Task "build" is up to date
|
||||
2
testdata/gitignore_nested/testdata/TestGitignoreNested-source_file_modified.golden
vendored
Normal file
2
testdata/gitignore_nested/testdata/TestGitignoreNested-source_file_modified.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
task: [build] echo "build executed"
|
||||
build executed
|
||||
1
testdata/gitignore_nested/testdata/TestGitignoreNested-up_to_date.golden
vendored
Normal file
1
testdata/gitignore_nested/testdata/TestGitignoreNested-up_to_date.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
task: Task "build" is up to date
|
||||
Reference in New Issue
Block a user