James Bardin
525485c213
Add proper build constraints for GH-7273
...
The syscall.Stat_t type doesn't exist on windows, so the inode lookup
needs to be in a file with proper build constraints.
2016-06-23 08:02:32 -04:00
James Bardin
558e023e26
Don't try to copy files over themselves
...
When copying a config module, make sure the full path for src and dst
files don't match, and also check the inode in case we resolved a
different path to the same file.
Make a note about the unsafe usage of reusing a tempDir path.
2016-06-22 11:25:42 -04:00
Mitchell Hashimoto
344e7c26b5
fix a bunch of tests from go-getter import
2015-10-15 13:48:58 -07:00
Mitchell Hashimoto
06f4ac8166
config/module: use go-getter
2015-10-15 13:36:58 -07:00
Emil Hessman
a76290f278
config/module: don't walk dst when dst is in src
...
Fixes #518
2014-11-06 13:45:01 +01:00
Mitchell Hashimoto
6ee9c06cdc
config/module: copyDir properly copies files in subdirectories
2014-10-12 21:12:42 -07:00
Mitchell Hashimoto
5c2182e316
config/module: only return SkipDir if it is dot-prefixed
2014-10-03 13:48:08 -07:00
Mitchell Hashimoto
f35ebe7032
config/module: walk actually recurses into dirs, don't copy dot-prefix
2014-10-03 13:46:19 -07:00
Mitchell Hashimoto
9689a34b28
config/module: GetCopy
2014-09-26 16:21:33 -07:00
Mitchell Hashimoto
c91fd76fe8
config/module: Get can support subdirs
2014-09-26 16:11:13 -07:00
Mitchell Hashimoto
21d90dcf4f
config/module: HTTP supports subdirs
2014-09-26 15:22:26 -07:00