-
-
Notifications
You must be signed in to change notification settings - Fork 557
Open
Labels
breaking-changeThis will have to be included with a major version as it breaks backwards compatibility.This will have to be included with a major version as it breaks backwards compatibility.bugfeature: 🗄 passthrough copyRelated to the passthrough file copy featureRelated to the passthrough file copy featurefeature: 🪞 ignoresIgnores, via configuration API or .eleventyignore or .gitignore etcIgnores, via configuration API or .eleventyignore or .gitignore etc
Milestone
Description
Describe the bug
I have a call to addPassthroughCopy with a glob to take all images, but one folder is in my .eleventyignore file and the images inside it are copied.
To Reproduce
Reduced test case:
mkdir -p src/ignored
echo "don't copy this" > src/ignored/file.txt
echo "src/ignored" > ./.eleventyignore
echo "module.exports = function (eleventyConfig) { eleventyConfig.addPassthroughCopy('src/**/*.txt'); return { dir: { input: 'src' } }; };" > ./.eleventy.js
npx @11ty/eleventyAlso in one single command:
mkdir -p src/ignored && echo "don't copy this" > src/ignored/file.txt && echo "src/ignored" > ./.eleventyignore && echo "module.exports = function (eleventyConfig) { eleventyConfig.addPassthroughCopy('src/**/*.txt'); return { dir: { input: 'src' } }; };" > ./.eleventy.js && npx @11ty/eleventyThe file src/ignored/file.txt is copied even if src/ignored is in .eleventyignore:
$ tree
.
├── _site
│ └── ignored
│ └── file.txt
└── src
└── ignored
└── file.txt
4 directories, 2 filesExpected behavior
I thought (I would like to) addPassthroughCopy respected .eleventyignore.
Environment:
- macOS 10.15.4
- Eleventy 0.10.0 as well as master (2020-04-29)
binyamin, alexandergottlieb, CosmoMyzrailGorynych, xplosionmind, rdominy and 2 morexplosionmind
Metadata
Metadata
Assignees
Labels
breaking-changeThis will have to be included with a major version as it breaks backwards compatibility.This will have to be included with a major version as it breaks backwards compatibility.bugfeature: 🗄 passthrough copyRelated to the passthrough file copy featureRelated to the passthrough file copy featurefeature: 🪞 ignoresIgnores, via configuration API or .eleventyignore or .gitignore etcIgnores, via configuration API or .eleventyignore or .gitignore etc