Andrey Nering
83d25bfa00
Refactor: Fix import order
...
It should be: stdlib > libs > app
2021-01-07 11:48:33 -03:00
Andrey Nering
ec4cd5ed48
Fix .task
directory location
...
Closes #247
2021-01-07 11:36:09 -03:00
Andrey Nering
fb72b46a3c
github.com/go-task/task/v2 -> github.com/go-task/task/v3
2020-08-16 15:48:19 -03:00
Andrey Nering
f4f6efa547
Skip cleanup if task doesn't have any sources listed
...
Ref #333
2020-05-31 15:48:23 -03:00
Andrey Nering
1a28e5e0d4
Few code improvements on #216
2019-09-14 17:54:41 -03:00
Andrey Nering
884cd0d636
Merge branch 'CypherpunkArmory-report-timestamp-to-status' into v3
2019-09-14 17:18:42 -03:00
Andrey Nering
78595fba0b
Make "checksum" the default method in v3
2019-09-08 22:51:56 -03:00
Stephen Prater
6b0935d6cf
Fix tests
2019-08-25 13:47:29 -07:00
Stephen Prater
d1183ce272
Merge branch 'master' into report-timestamp-to-status
...
* master:
Update CHANGELOG
Small improvements to #228
Fix a typo
Fix Checksum.IsUpToDate
Remove directory check
Update glob.go
Separate error handlings for readability
Re-run the task if generated files do not exist
2019-08-25 13:46:02 -07:00
Stephen Prater
a1aec8178a
Export Time Struct to Template
2019-08-25 13:36:48 -07:00
Andrey Nering
0d9fdbaac1
Small improvements to #228
2019-08-25 16:32:25 -03:00
Stephen Prater
db36bc67f1
Changes per feedback
2019-08-25 10:30:00 -07:00
Stephen Prater
1ee684b7c0
Expose timestamp and checksum to status
2019-08-25 09:39:39 -07:00
Seiichi Uchida
8987cd64a0
Fix a typo
2019-08-21 13:42:19 +09:00
Seiichi Uchida
fac51dcf03
Fix Checksum.IsUpToDate
...
- Check whether generates exist after the creation of checksum file
- Check whether generates exist if only the user specified generates fields
- Check for each generates field instead of taking it as a whole
2019-08-21 13:35:16 +09:00
Seiichi Uchida
01101a4c9b
Remove directory check
2019-08-21 13:34:58 +09:00
Seiichi Uchida
d561e40817
Update glob.go
...
- Rename glob() to globs()
- Add glob() which handles a single glob pattern
- Change glob() and globs() so that they do not return directoreis
2019-08-21 13:33:12 +09:00
Seiichi Uchida
0cb298ebdf
Separate error handlings for readability
2019-08-19 13:00:10 +09:00
Seiichi Uchida
26e0c0887a
Re-run the task if generated files do not exist
2019-08-01 13:08:53 +09:00
Andrey Nering
902f0d3ac4
Don't persist new checksum on the disk if dry mode is enabled
...
Fixes #166
2019-02-09 10:44:35 -02:00
Andrey Nering
57a01aa6ff
Fix failing test
...
There was some breaking changes described at
https://github.com/mvdan/sh/issues/335#issuecomment-447605295
2018-12-24 15:19:53 -02:00
Andrey Nering
687b4ec837
Fix error when using checksum method and no file exists for a source glob
...
Closes #131
2018-09-01 11:23:38 -03:00
Andrey Nering
67105b332f
Move path expanding logic to shell.Expand
2018-07-15 15:49:00 -03:00
Andrey Nering
102f8ab74e
Expand environment variables on "dir", "sources" and "generates"
...
So a path like this works: $GOPATH/src/github.com/go-task/task
Allowing of "~" was also implemented. See #74 and baac067a1a
Fixes #116
2018-06-16 14:30:40 -03:00
Andrey Nering
44a52359dc
checksum: save them in a subdir .task/checksum
...
future-proof since the .task directory can be used to save other state
in the future
2017-11-02 10:37:02 -02:00
Andrey Nering
2022551b26
checksum: also sum the name of the files, so it changes after renaming
2017-11-02 10:31:34 -02:00
Andrey Nering
baac067a1a
expand home dir ("~" symbol) on paths
...
fixes #74
2017-11-02 10:25:50 -02:00
Andrey Nering
33b167215d
move some packages to the "internal" directory
...
- this makes it impossible to import these packages outside Task
- as a side effect, it makes the root directory cleaner
2017-10-15 17:58:21 -02:00